File size: 1,733 Bytes
985c397 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 | # SPDX-License-Identifier: LGPL-2.1-or-later
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)
list (APPEND Import_Scripts TestImportGui.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*"
)
|