From 3eef3a66bcc8039d822820955b140f8e14c26832 Mon Sep 17 00:00:00 2001 From: Matthias Hochsteger Date: Thu, 11 May 2017 11:21:55 +0200 Subject: [PATCH] link TCL to gui library --- ng/CMakeLists.txt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ng/CMakeLists.txt b/ng/CMakeLists.txt index 6749dd2f..1a553edc 100644 --- a/ng/CMakeLists.txt +++ b/ng/CMakeLists.txt @@ -16,13 +16,14 @@ if(USE_GUI) set_directory_properties(PROPERTIES RULE_LAUNCH_COMPILE "") endif(WIN32) - add_executable(netgen ${netgen_sources}) add_library(gui SHARED ${gui_sources}) + add_executable(netgen ${netgen_sources}) - target_link_libraries( netgen nglib gui ${ZLIB_LIBRARIES} ${TK_LIBRARY} ${TCL_LIBRARY} ${JPEG_LIBRARIES} ${FFMPEG_LIBRARIES} ${X11_X11_LIB} ${OCC_LIBRARIES}) - target_link_libraries( gui PUBLIC nglib ${ZLIB_LIBRARIES} ${JPEG_LIBRARIES} ${FFMPEG_LIBRARIES} ${X11_X11_LIB} ${OCC_LIBRARIES} ) + target_link_libraries( gui PUBLIC nglib ${TK_LIBRARY} ${TCL_LIBRARY} ${ZLIB_LIBRARIES} ${JPEG_LIBRARIES} ${FFMPEG_LIBRARIES} ${X11_X11_LIB} ${OCC_LIBRARIES} ) target_link_libraries( gui PRIVATE ${LIBTOGL}) + target_link_libraries( netgen nglib gui ) + if(NOT WIN32) target_link_libraries( netgen mesh stlvis stl geom2dvis interface geom2d csg stl visual csgvis ) target_link_libraries( gui PUBLIC mesh stlvis stl geom2dvis interface geom2d csg stl visual csgvis )