Files
create/src/Mod/Part/CMakeLists.txt
marbocub 75717f4ad0 Fix legacy mmTangentPlane orientation in 1.1.0dev (resolves #24254) (#24529)
* Add legacy TangentPlane orientation compatibility layer

* Refactor: extract lambda for object identifier construction

* Refactor: axis calculation using std::ranges::max_element and std::distance

* Apply suggestions from code review

Co-authored-by: Pieter Hijma <pieterhijma@users.noreply.github.com>

* Part: Add regression test for issue 24254

---------

Co-authored-by: Pieter Hijma <pieterhijma@users.noreply.github.com>
Co-authored-by: Chris Hennes <chennes@gmail.com>
2025-11-10 10:36:42 -06:00

145 lines
2.8 KiB
CMake

# 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
)