CMP0050: make PartDesign module aware of cmake policy

This commit is contained in:
wmayer
2018-08-20 17:19:04 +02:00
parent 303b7f41cb
commit 4d28a062fc
3 changed files with 97 additions and 129 deletions

View File

@@ -127,7 +127,6 @@ SET(Python_SRCS
BodyPyImp.cpp
FeaturePy.xml
FeaturePyImp.cpp
)
SOURCE_GROUP("Python" FILES ${Python_SRCS})
@@ -138,58 +137,13 @@ SET(PartDesign_SRCS
${FeaturesSketchBased_SRCS}
${FeaturesDressUp_SRCS}
${Module_SRCS}
${Python_SRCS}
)
SET(PartDesign_Scripts
__init__.py
Init.py
TestPartDesignApp.py
InvoluteGearFeature.py
InvoluteGearFeature.ui
Scripts/__init__.py
Scripts/Gear.py
Scripts/DistanceBolt.py
Scripts/Epitrochoid.py
Scripts/FilletArc.py
Scripts/RadialCopy.py
Scripts/Parallelepiped.py
Scripts/Spring.py
PartDesignTests/__init__.py
PartDesignTests/TestDatum.py
PartDesignTests/TestShapeBinder.py
PartDesignTests/TestPad.py
PartDesignTests/TestPocket.py
PartDesignTests/TestHole.py
PartDesignTests/TestRevolve.py
PartDesignTests/TestLoft.py
PartDesignTests/TestPipe.py
PartDesignTests/TestPrimitive.py
PartDesignTests/TestMirrored.py
PartDesignTests/TestLinearPattern.py
PartDesignTests/TestPolarPattern.py
PartDesignTests/TestMultiTransform.py
PartDesignTests/TestBoolean.py
PartDesignTests/TestFillet.py
PartDesignTests/TestChamfer.py
PartDesignTests/TestDraft.py
PartDesignTests/TestThickness.py
fcgear/__init__.py
fcgear/fcgear.py
fcgear/fcgeardialog.py
fcgear/involute.py
fcgear/svggear.py
${Python_SRCS}
)
add_library(PartDesign SHARED ${PartDesign_SRCS})
target_link_libraries(PartDesign ${PartDesign_LIBS})
fc_target_copy_resource(PartDesign
${CMAKE_SOURCE_DIR}/src/Mod/PartDesign
${CMAKE_BINARY_DIR}/Mod/PartDesign
${PartDesign_Scripts})
SET_BIN_DIR(PartDesign _PartDesign /Mod/PartDesign)
SET_PYTHON_PREFIX_SUFFIX(PartDesign)