From c28fff2a3498e0ff03981c49e5aba91249fc6527 Mon Sep 17 00:00:00 2001 From: Matthias Hochsteger Date: Tue, 19 May 2015 10:16:25 +0200 Subject: [PATCH] fix for non-GUI build --- libsrc/visualization/CMakeLists.txt | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/libsrc/visualization/CMakeLists.txt b/libsrc/visualization/CMakeLists.txt index c9b9afc8..23e25f92 100644 --- a/libsrc/visualization/CMakeLists.txt +++ b/libsrc/visualization/CMakeLists.txt @@ -4,16 +4,18 @@ install(FILES soldata.hpp DESTINATION include COMPONENT netgen_devel ) # AM_CPPFLAGS = $(MPI_INCLUDES) -I$(top_srcdir)/libsrc/include -DOPENGL -D$(TOGL_WINDOWINGSYSTEM) $(OCCFLAGS) $(TCL_INCLUDES) if(USE_GUI) - add_library(visual ${NG_LIB_TYPE} - meshdoc.cpp mvdraw.cpp - vsfieldlines.cpp vsmesh.cpp vssolution.cpp importsolution.cpp visualpkg.cpp - ) - if(NOT WIN32) - target_link_libraries( visual ${PYTHON_LIBS} ${MPI_CXX_LIBRARIES} ${OPENGL_LIBRARIES} ${TCL_LIBRARY} ) - install( TARGETS visual DESTINATION lib COMPONENT netgen ) - endif(NOT WIN32) + set( LIB_VISUAL_SOURCES meshdoc.cpp mvdraw.cpp vsfieldlines.cpp vsmesh.cpp vssolution.cpp importsolution.cpp visualpkg.cpp ) +else(USE_GUI) + set( LIB_VISUAL_SOURCES visual_dummy.cpp ) endif(USE_GUI) +add_library(visual ${NG_LIB_TYPE} ${LIB_VISUAL_SOURCES}) + +if(NOT WIN32) + target_link_libraries( visual ${PYTHON_LIBS} ${MPI_CXX_LIBRARIES} ${OPENGL_LIBRARIES} ${TCL_LIBRARY} ) + install( TARGETS visual DESTINATION lib COMPONENT netgen ) +endif(NOT WIN32) +