mirror of
https://github.com/NGSolve/netgen.git
synced 2024-11-11 16:49:16 +05:00
b2fea6dec1
- define DLL_HEADER only once in mydefs.hpp - define/use NGLIB_API in nglib.h - use NGCORE_API_EXPORT for explicit export of symbols
26 lines
807 B
CMake
26 lines
807 B
CMake
add_definitions(-DNGINTERFACE_EXPORTS)
|
|
add_library(geom2d ${NG_LIB_TYPE} csg2d.cpp genmesh2d.cpp geometry2d.cpp python_geom2d.cpp )
|
|
if(APPLE)
|
|
set_target_properties( geom2d PROPERTIES SUFFIX ".so")
|
|
endif(APPLE)
|
|
|
|
target_link_libraries(geom2d PUBLIC ngcore mesh PRIVATE "$<BUILD_INTERFACE:netgen_python>")
|
|
if(NOT WIN32)
|
|
install( TARGETS geom2d ${NG_INSTALL_DIR})
|
|
endif(NOT WIN32)
|
|
|
|
if(USE_GUI)
|
|
add_library(geom2dvis ${NG_LIB_TYPE} vsgeom2d.cpp)
|
|
target_link_libraries(geom2dvis PUBLIC ngcore)
|
|
if(NOT WIN32)
|
|
target_link_libraries(geom2dvis PUBLIC geom2d)
|
|
install( TARGETS geom2dvis ${NG_INSTALL_DIR})
|
|
endif(NOT WIN32)
|
|
endif(USE_GUI)
|
|
|
|
install(FILES
|
|
geometry2d.hpp spline2d.hpp
|
|
vsgeom2d.hpp csg2d.hpp
|
|
DESTINATION ${NG_INSTALL_DIR_INCLUDE}/geom2d COMPONENT netgen_devel
|
|
)
|