CMP0050: make Mesh module aware of cmake policy

This commit is contained in:
wmayer
2018-08-20 15:22:00 +02:00
parent 46bb5e0c77
commit ed974394fa
2 changed files with 8 additions and 9 deletions

View File

@@ -14,11 +14,11 @@ if(BUILD_GUI)
list (APPEND Mesh_Scripts InitGui.py)
endif(BUILD_GUI)
add_custom_target(Mesh_Data ALL
add_custom_target(MeshScripts ALL
SOURCES ${Mesh_Scripts}
)
fc_target_copy_resource_flat(Mesh_Data
fc_target_copy_resource_flat(MeshScripts
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_BINARY_DIR}/Mod/Mesh
${Mesh_Scripts}

View File

@@ -142,19 +142,18 @@ SET(MeshGui_SRCS
Workbench.h
)
add_library(MeshGui SHARED ${MeshGui_SRCS})
SET(MeshGuiIcon_SVG
Resources/icons/MeshWorkbench.svg
)
add_library(MeshGui SHARED ${MeshGui_SRCS} ${MeshGuiIcon_SVG})
target_link_libraries(MeshGui ${MeshGui_LIBS})
SET_BIN_DIR(MeshGui MeshGui /Mod/Mesh)
SET_PYTHON_PREFIX_SUFFIX(MeshGui)
INSTALL(TARGETS MeshGui DESTINATION ${CMAKE_INSTALL_LIBDIR})
SET(MeshGuiIcon_SVG
Resources/icons/MeshWorkbench.svg
)
fc_copy_sources(MeshGui "${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_DATADIR}/Mod/Mesh" ${MeshGuiIcon_SVG})
INSTALL(TARGETS MeshGui DESTINATION ${CMAKE_INSTALL_LIBDIR})
INSTALL(FILES ${MeshGuiIcon_SVG} DESTINATION "${CMAKE_INSTALL_DATADIR}/Mod/Mesh/Resources/icons")