84 lines
1.6 KiB
CMake
84 lines
1.6 KiB
CMake
|
|
add_subdirectory(App)
|
|
if(BUILD_GUI)
|
|
add_subdirectory(Gui)
|
|
endif(BUILD_GUI)
|
|
|
|
#IF (BUILD_GUI)
|
|
# PYSIDE_WRAP_RC(Import_QRC_SRCS Resources/Import.qrc)
|
|
#ENDIF (BUILD_GUI)
|
|
|
|
#ADD_CUSTOM_TARGET(ImportRC ALL
|
|
# SOURCES ${Import_QRC_SRCS}
|
|
#)
|
|
|
|
|
|
#IF (BUILD_GUI)
|
|
# fc_target_copy_resource(ImportRC
|
|
# ${CMAKE_CURRENT_BINARY_DIR}
|
|
# ${CMAKE_BINARY_DIR}/Mod/Import
|
|
# Import_rc.py)
|
|
#ENDIF (BUILD_GUI)
|
|
|
|
SET(DXF_Plate
|
|
DxfPlate/blocks10.rub
|
|
DxfPlate/blocks112.rub
|
|
DxfPlate/blocks114.rub
|
|
DxfPlate/classes14.rub
|
|
DxfPlate/entities0.rub
|
|
DxfPlate/entities12.rub
|
|
DxfPlate/entities14.rub
|
|
DxfPlate/header0.rub
|
|
DxfPlate/header12.rub
|
|
DxfPlate/header14.rub
|
|
DxfPlate/objects14.rub
|
|
DxfPlate/tables10.rub
|
|
DxfPlate/tables112.rub
|
|
DxfPlate/tables114.rub
|
|
DxfPlate/tables20.rub
|
|
DxfPlate/tables212.rub
|
|
DxfPlate/tables214.rub
|
|
)
|
|
|
|
set(Import_Scripts
|
|
Init.py
|
|
stepZ.py
|
|
)
|
|
|
|
if(BUILD_GUI)
|
|
list (APPEND Import_Scripts InitGui.py)
|
|
endif(BUILD_GUI)
|
|
|
|
add_custom_target(ImportScripts ALL
|
|
SOURCES ${Import_Scripts} ${DXF_Plate}
|
|
)
|
|
|
|
fc_target_copy_resource(ImportScripts
|
|
${CMAKE_CURRENT_SOURCE_DIR}
|
|
${CMAKE_BINARY_DIR}/Mod/Import
|
|
${Import_Scripts}
|
|
)
|
|
|
|
fc_target_copy_resource(ImportScripts
|
|
${CMAKE_SOURCE_DIR}/src/Mod/Import
|
|
${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_DATADIR}/Mod/Import
|
|
${DXF_Plate}
|
|
)
|
|
|
|
INSTALL(
|
|
FILES
|
|
${Import_Scripts}
|
|
#${Import_QRC_SRCS}
|
|
DESTINATION
|
|
Mod/Import
|
|
)
|
|
|
|
INSTALL(
|
|
DIRECTORY
|
|
DxfPlate
|
|
DESTINATION
|
|
${CMAKE_INSTALL_DATADIR}/Mod/Import
|
|
FILES_MATCHING
|
|
PATTERN "*.rub*"
|
|
)
|