mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-17 08:20:34 +05:00
23 lines
778 B
CMake
23 lines
778 B
CMake
add_definitions(-DNGINTERFACE_EXPORTS)
|
|
install(FILES soldata.hpp DESTINATION ${NG_INSTALL_DIR_INCLUDE} COMPONENT netgen_devel )
|
|
|
|
if(USE_GUI)
|
|
set( LIB_VISUAL_SOURCES meshdoc.cpp mvdraw.cpp vsfieldlines.cpp vsmesh.cpp vssolution.cpp importsolution.cpp )
|
|
else(USE_GUI)
|
|
set( LIB_VISUAL_SOURCES visual_dummy.cpp )
|
|
endif(USE_GUI)
|
|
|
|
add_library(visual ${NG_LIB_TYPE} ${LIB_VISUAL_SOURCES})
|
|
|
|
target_link_libraries( visual ngcore ${MPI_CXX_LIBRARIES} ${OPENGL_LIBRARIES} )
|
|
if(DYNAMIC_LINK_PYTHON)
|
|
target_link_libraries( visual ${PYTHON_LIBRARIES})
|
|
endif(DYNAMIC_LINK_PYTHON)
|
|
install( TARGETS visual ${NG_INSTALL_DIR})
|
|
|
|
install(FILES
|
|
meshdoc.hpp mvdraw.hpp
|
|
vispar.hpp visual.hpp vssolution.hpp
|
|
DESTINATION ${NG_INSTALL_DIR_INCLUDE}/visualization COMPONENT netgen_devel
|
|
)
|