CMP0050: make Assembly module aware of cmake policy

This commit is contained in:
wmayer
2018-08-20 23:11:32 +02:00
parent 34140bdc9f
commit 16b91bf8a6
2 changed files with 18 additions and 10 deletions

View File

@@ -92,17 +92,21 @@ SET(AssemblyGui_SRCS
${AssemblyGui_UIC_HDRS}
)
add_library(AssemblyGui SHARED ${AssemblyGui_SRCS})
SET(AssemblyGui_Scripts
../InitGui.py
)
add_library(AssemblyGui SHARED ${AssemblyGui_SRCS} ${AssemblyGui_Scripts})
if(CMAKE_COMPILER_IS_GNUCXX)
set_target_properties(AssemblyGui PROPERTIES COMPILE_FLAGS "-fext-numeric-literals")
endif()
target_link_libraries(AssemblyGui ${AssemblyGui_LIBS})
fc_target_copy_resource(AssemblyGui
${CMAKE_SOURCE_DIR}/src/Mod/Assembly
fc_target_copy_resource_flat(AssemblyGui
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_BINARY_DIR}/Mod/Assembly
InitGui.py)
${AssemblyGui_Scripts})
SET_BIN_DIR(AssemblyGui AssemblyGui /Mod/Assembly)
SET_PYTHON_PREFIX_SUFFIX(AssemblyGui)