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 )
|
2015-09-11 03:41:15 +05:00
|
|
|
if(APPLE)
|
|
|
|
set_target_properties( geom2d PROPERTIES SUFFIX ".so")
|
|
|
|
endif(APPLE)
|
2015-03-06 18:59:14 +05:00
|
|
|
|
|
|
|
if(NOT WIN32)
|
|
|
|
target_link_libraries(geom2d mesh ${PYTHON_LIBS})
|
2015-04-08 23:04:28 +05:00
|
|
|
install( TARGETS geom2d DESTINATION lib COMPONENT netgen)
|
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)
|
2015-04-08 23:04:28 +05:00
|
|
|
install( TARGETS geom2dvis DESTINATION lib COMPONENT netgen)
|
2015-03-06 18:59:14 +05:00
|
|
|
endif(NOT WIN32)
|
|
|
|
endif(USE_GUI)
|
|
|
|
|