Files
create/src/Mod/Material/CMakeLists.txt
Yorik van Havre f4da53bd1d Material: Created material editor
Materal editor is now funcional, abeit not complete. Can be used to
create and save new cards. Lauch from within FreeCAD with
import MaterialEditor; MaterialEditor.openEditor()
2013-11-19 19:27:15 -02:00

46 lines
968 B
CMake

SET(Material_SRCS
Init.py
InitGui.py
Material.py
importFCMat.py
MaterialEditor.py
)
SOURCE_GROUP("" FILES ${Material_SRCS})
# collect all the material cards:
#FILE( GLOB MaterialLib_Files ./StandardMaterial/*.FCMat ./StandardMaterial/*.txt )
SET (MaterialLib_Files
StandardMaterial/Steel.FCMat
StandardMaterial/ABS.FCMat
StandardMaterial/PLA.FCMat
StandardMaterial/Readme.txt
)
SET(all_files ${Material_SRCS})
ADD_CUSTOM_TARGET(Material ALL
SOURCES ${all_files}
)
fc_copy_sources(Material "${CMAKE_BINARY_DIR}/Mod/Material" ${all_files})
fc_target_copy_resource(Material
${CMAKE_SOURCE_DIR}/src/Mod/Material
${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_DATADIR}/Mod/Material
${MaterialLib_Files})
INSTALL(
FILES ${Material_SRCS}
DESTINATION Mod/Material
)
INSTALL(
DIRECTORY
StandardMaterial
DESTINATION
${CMAKE_INSTALL_DATADIR}/Mod/Material
FILES_MATCHING PATTERN "*.FCMat*"
)