mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-27 14:20:34 +05:00
d6f1cf2bda
Works around following issue with CMake 3.14: > CMake error : install(EXPORT "netgen-targets" ...) includes target "mesh" which requires target "gprim" that is not in the export set.
27 lines
754 B
CMake
27 lines
754 B
CMake
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)
|
|
|
|
target_link_libraries(geom2d mesh ${PYTHON_LIBRARIES})
|
|
if(NOT WIN32)
|
|
install( TARGETS geom2d ${NG_INSTALL_DIR})
|
|
endif(NOT WIN32)
|
|
|
|
target_link_libraries(geom2d ngcore)
|
|
|
|
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
|
|
vsgeom2d.hpp
|
|
DESTINATION ${NG_INSTALL_DIR_INCLUDE}/geom2d COMPONENT netgen_devel
|
|
)
|