From 63bf0aaeb6e1e67980ee7b10983abcefef39a17e Mon Sep 17 00:00:00 2001 From: wmayer Date: Mon, 20 Aug 2018 20:14:46 +0200 Subject: [PATCH] CMP0050: make Fem module aware of cmake policy --- src/Mod/Fem/Gui/CMakeLists.txt | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/Mod/Fem/Gui/CMakeLists.txt b/src/Mod/Fem/Gui/CMakeLists.txt index c302b91fae..135dcbe3d3 100755 --- a/src/Mod/Fem/Gui/CMakeLists.txt +++ b/src/Mod/Fem/Gui/CMakeLists.txt @@ -371,14 +371,13 @@ SET(FemGui_SRCS ) -add_library(FemGui SHARED ${FemGui_SRCS}) -target_link_libraries(FemGui ${FemGui_LIBS} ${VTK_LIBRARIES}) - - SET(FemGuiIcon_SVG Resources/icons/FemWorkbench.svg ) +add_library(FemGui SHARED ${FemGui_SRCS} ${FemGuiIcon_SVG}) +target_link_libraries(FemGui ${FemGui_LIBS} ${VTK_LIBRARIES}) + fc_copy_sources(FemGui "${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_DATADIR}/Mod/Fem" ${FemGuiIcon_SVG})