File: CMakeLists.txt

package info (click to toggle)
netgen 6.2.1804%2Bdfsg1-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 12,308 kB
  • sloc: cpp: 132,223; ansic: 22,816; tcl: 6,739; sh: 1,175; python: 725; makefile: 33
file content (24 lines) | stat: -rw-r--r-- 742 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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)

if(NOT WIN32)
    target_link_libraries(geom2d mesh ${PYTHON_LIBRARIES})
    install( TARGETS geom2d ${NG_INSTALL_DIR})
endif(NOT WIN32)

if(USE_GUI)
    add_library(geom2dvis ${NG_LIB_TYPE} vsgeom2d.cpp)
    if(NOT WIN32)
        target_link_libraries(geom2dvis geom2d)
        install( TARGETS geom2dvis ${NG_INSTALL_DIR})
    endif(NOT WIN32)
endif(USE_GUI)

install(FILES
  geom2dmesh.hpp geometry2d.hpp spline2d.hpp
  splinegeometry2.hpp vsgeom2d.hpp
  DESTINATION ${NG_INSTALL_DIR_INCLUDE}/geom2d COMPONENT netgen_devel
)