CMP0050: make TechDraw module aware of cmake policy
This commit is contained in:
@@ -154,14 +154,6 @@ SOURCE_GROUP("Features" FILES ${Draw_SRCS})
|
||||
SOURCE_GROUP("Geometry" FILES ${Geometry_SRCS})
|
||||
SOURCE_GROUP("Python" FILES ${Python_SRCS})
|
||||
|
||||
SET(TechDraw_PATFile
|
||||
PAT/FCPAT.pat
|
||||
)
|
||||
|
||||
SET(TechDraw_LineGroupFile
|
||||
LineGroup/LineGroup.csv
|
||||
)
|
||||
|
||||
if(BUILD_USE_PCH)
|
||||
#add_definitions(-D_PreComp_)
|
||||
#GET_MSVC_PRECOMPILED_SOURCE("PreCompiled.cpp" TechDrawCPP_SRCS ${TechDraw_SRCS} ${Draw_SRCS} )
|
||||
@@ -172,26 +164,6 @@ add_library(TechDraw SHARED ${TechDraw_SRCS} ${Draw_SRCS} ${TechDrawAlgos_SRCS}
|
||||
${Geometry_SRCS} ${Python_SRCS})
|
||||
target_link_libraries(TechDraw ${TechDrawLIBS};${QT_QTXML_LIBRARY};${TechDraw})
|
||||
|
||||
SET(TechDrawScripts
|
||||
Init.py
|
||||
TestTechDrawApp.py
|
||||
)
|
||||
|
||||
fc_target_copy_resource(TechDraw
|
||||
${CMAKE_SOURCE_DIR}/src/Mod/TechDraw
|
||||
${CMAKE_BINARY_DIR}/Mod/TechDraw
|
||||
${TechDrawScripts})
|
||||
|
||||
fc_target_copy_resource(TechDraw
|
||||
${CMAKE_SOURCE_DIR}/src/Mod/TechDraw
|
||||
${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_DATADIR}/Mod/TechDraw
|
||||
${TechDraw_PATFile})
|
||||
|
||||
fc_target_copy_resource(TechDraw
|
||||
${CMAKE_SOURCE_DIR}/src/Mod/TechDraw
|
||||
${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_DATADIR}/Mod/TechDraw
|
||||
${TechDraw_LineGroupFile})
|
||||
|
||||
ADD_CUSTOM_COMMAND(TARGET TechDraw
|
||||
POST_BUILD
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_directory
|
||||
|
||||
Reference in New Issue
Block a user