Material: card utils, add new module
This commit is contained in:
@@ -13,6 +13,11 @@ SET(Material_SRCS
|
||||
)
|
||||
SOURCE_GROUP("Module" FILES ${Material_SRCS})
|
||||
|
||||
SET (MaterialTools_Files
|
||||
materialtools/__init__.py
|
||||
materialtools/cardutils.py
|
||||
)
|
||||
|
||||
# collect all the material cards:
|
||||
#FILE( GLOB MaterialLib_Files ./StandardMaterial/*.FCMat ./StandardMaterial/*.txt )
|
||||
|
||||
@@ -53,6 +58,19 @@ fc_target_copy_resource(Material
|
||||
${CMAKE_BINARY_DIR}/Mod/Material
|
||||
${Material_SRCS})
|
||||
|
||||
|
||||
ADD_CUSTOM_TARGET(MaterialToolsLib ALL
|
||||
SOURCES ${MaterialTools_Files}
|
||||
)
|
||||
|
||||
fc_target_copy_resource(MaterialToolsLib
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_BINARY_DIR}/Mod/Material
|
||||
${MaterialTools_Files})
|
||||
|
||||
INSTALL(FILES ${MaterialTools_Files} DESTINATION Mod/Material/materialtools)
|
||||
|
||||
|
||||
IF (BUILD_GUI)
|
||||
fc_target_copy_resource(Material
|
||||
${CMAKE_CURRENT_BINARY_DIR}
|
||||
|
||||
0
src/Mod/Material/materialtools/__init__.py
Normal file
0
src/Mod/Material/materialtools/__init__.py
Normal file
25
src/Mod/Material/materialtools/cardutils.py
Normal file
25
src/Mod/Material/materialtools/cardutils.py
Normal file
@@ -0,0 +1,25 @@
|
||||
# ***************************************************************************
|
||||
# * Copyright (c) 2019 Bernd Hahnebach <bernd@bimstatik.org> *
|
||||
# * *
|
||||
# * This program is free software; you can redistribute it and/or modify *
|
||||
# * it under the terms of the GNU Lesser General Public License (LGPL) *
|
||||
# * as published by the Free Software Foundation; either version 2 of *
|
||||
# * the License, or (at your option) any later version. *
|
||||
# * for detail see the LICENCE text file. *
|
||||
# * *
|
||||
# * This program is distributed in the hope that it will be useful, *
|
||||
# * but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||
# * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||
# * GNU Library General Public License for more details. *
|
||||
# * *
|
||||
# * You should have received a copy of the GNU Library General Public *
|
||||
# * License along with this program; if not, write to the Free Software *
|
||||
# * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 *
|
||||
# * USA *
|
||||
# * *
|
||||
# ***************************************************************************
|
||||
|
||||
__title__ = "material cards utilities"
|
||||
__author__ = "Bernd Hahnebach"
|
||||
__url__ = "http://www.freecadweb.org"
|
||||
|
||||
Reference in New Issue
Block a user