netgen/libsrc/geom2d/CMakeLists.txt

25 lines
726 B
CMake
Raw Normal View History

2015-03-06 18:59:14 +05:00
add_definitions(-DNGLIB_EXPORTS)
add_library(geom2d ${NG_LIB_TYPE} genmesh2d.cpp geom2dmesh.cpp geometry2d.cpp python_geom2d.cpp )
if(APPLE)
set_target_properties( geom2d PROPERTIES SUFFIX ".so")
endif(APPLE)
2015-03-06 18:59:14 +05:00
if(NOT WIN32)
2017-01-09 22:45:12 +05:00
target_link_libraries(geom2d mesh ${PYTHON_LIBRARIES})
2016-02-08 19:53:16 +05:00
install( TARGETS geom2d ${ng_install_dir})
2015-03-06 18:59:14 +05:00
endif(NOT WIN32)
if(USE_GUI)
2015-10-19 13:08:30 +05:00
add_library(geom2dvis ${NG_LIB_TYPE} vsgeom2d.cpp)
2015-03-06 18:59:14 +05:00
if(NOT WIN32)
target_link_libraries(geom2dvis geom2d)
2016-02-08 19:53:16 +05:00
install( TARGETS geom2dvis ${ng_install_dir})
2015-03-06 18:59:14 +05:00
endif(NOT WIN32)
endif(USE_GUI)
2017-01-16 18:56:57 +05:00
install(FILES
geom2dmesh.hpp geometry2d.hpp spline2d.hpp
splinegeometry2.hpp vsgeom2d.hpp
DESTINATION ${INCDIR}/geom2d COMPONENT netgen_devel
)