File size: 2,877 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 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 | # SPDX-License-Identifier: LGPL-2.1-or-later
if(BUILD_TRACY_FRAME_PROFILER)
add_definitions(-DBUILD_TRACY_FRAME_PROFILER)
endif()
add_subdirectory(App)
if(BUILD_GUI)
add_subdirectory(Gui)
endif(BUILD_GUI)
set(Part_Scripts
Init.py
JoinFeatures.py
MakeBottle.py
PartEnums.py
TestPartApp.py
)
if(BUILD_GUI)
list (APPEND Part_Scripts
InitGui.py
TestPartGui.py
)
endif(BUILD_GUI)
set(AttachmentEditor_Scripts
AttachmentEditor/__init__.py
AttachmentEditor/Commands.py
AttachmentEditor/FrozenClass.py
AttachmentEditor/TaskAttachmentEditor.py
AttachmentEditor/TaskAttachmentEditor.ui
)
set(BasicShapes_Scripts
BasicShapes/__init__.py
BasicShapes/Shapes.py
BasicShapes/Utils.py
)
if(BUILD_GUI)
list (APPEND BasicShapes_Scripts
BasicShapes/ShapeContent.py
BasicShapes/CommandShapes.py
BasicShapes/ViewProviderShapes.py
BasicShapes/TaskTube.ui
)
endif(BUILD_GUI)
set(BOPTools_Scripts
BOPTools/__init__.py
BOPTools/BOPFeatures.py
BOPTools/GeneralFuseResult.py
BOPTools/JoinAPI.py
BOPTools/JoinFeatures.py
BOPTools/ShapeMerge.py
BOPTools/SplitAPI.py
BOPTools/SplitFeatures.py
BOPTools/ToleranceFeatures.py
BOPTools/Utils.py
)
set(CompoundTools_Scripts
CompoundTools/__init__.py
CompoundTools/_CommandCompoundFilter.py
CompoundTools/_CommandExplodeCompound.py
CompoundTools/CompoundFilter.py
CompoundTools/Explode.py
)
set(Part_tests
parttests/__init__.py
parttests/BRep_tests.py
parttests/Geom2d_tests.py
parttests/part_test_objects.py
parttests/regression_tests.py
parttests/TopoShapeListTest.py
parttests/ColorPerFaceTest.py
parttests/ColorTransparencyTest.py
parttests/TopoShapeTest.py
parttests/TestTangentMode3-0.21.FCStd
)
add_custom_target(PartScripts ALL SOURCES
${Part_Scripts}
${AttachmentEditor_Scripts}
${BasicShapes_Scripts}
${BOPTools_Scripts}
${CompoundTools_Scripts}
${Part_tests}
)
fc_target_copy_resource(PartScripts
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_BINARY_DIR}/Mod/Part
${Part_Scripts}
${AttachmentEditor_Scripts}
${BasicShapes_Scripts}
${BOPTools_Scripts}
${CompoundTools_Scripts}
${Part_tests}
)
INSTALL(
FILES
${Part_Scripts}
DESTINATION
Mod/Part
)
INSTALL(
FILES
${AttachmentEditor_Scripts}
DESTINATION
Mod/Part/AttachmentEditor
)
INSTALL(
FILES
${BasicShapes_Scripts}
DESTINATION
Mod/Part/BasicShapes
)
INSTALL(
FILES
${BOPTools_Scripts}
DESTINATION
Mod/Part/BOPTools
)
INSTALL(
FILES
${CompoundTools_Scripts}
DESTINATION
Mod/Part/CompoundTools
)
INSTALL(
FILES
${Part_tests}
DESTINATION
Mod/Part/parttests
)
|