netgen/libsrc/visualization/CMakeLists.txt

24 lines
836 B
CMake
Raw Normal View History

2015-03-06 18:59:14 +05:00
add_definitions(-DNGINTERFACE_EXPORTS)
2017-01-16 18:56:57 +05:00
install(FILES soldata.hpp DESTINATION ${INCDIR} COMPONENT netgen_devel )
2015-03-06 18:59:14 +05:00
# AM_CPPFLAGS = $(MPI_INCLUDES) -I$(top_srcdir)/libsrc/include -DOPENGL -D$(TOGL_WINDOWINGSYSTEM) $(OCCFLAGS) $(TCL_INCLUDES)
if(USE_GUI)
2015-10-19 13:08:30 +05:00
set( LIB_VISUAL_SOURCES meshdoc.cpp mvdraw.cpp vsfieldlines.cpp vsmesh.cpp vssolution.cpp importsolution.cpp )
2015-05-19 13:16:25 +05:00
else(USE_GUI)
set( LIB_VISUAL_SOURCES visual_dummy.cpp )
2015-03-06 18:59:14 +05:00
endif(USE_GUI)
2015-05-19 13:16:25 +05:00
add_library(visual ${NG_LIB_TYPE} ${LIB_VISUAL_SOURCES})
if(NOT WIN32)
2017-01-09 22:45:12 +05:00
target_link_libraries( visual ${PYTHON_LIBRARIES} ${MPI_CXX_LIBRARIES} ${OPENGL_LIBRARIES} ${TCL_LIBRARY} )
2016-02-08 19:53:16 +05:00
install( TARGETS visual ${ng_install_dir})
2015-05-19 13:16:25 +05:00
endif(NOT WIN32)
2017-01-16 18:56:57 +05:00
install(FILES
meshdoc.hpp mvdraw.hpp
vispar.hpp visual.hpp vssolution.hpp
DESTINATION ${INCDIR}/visualization COMPONENT netgen_devel
)