2015-03-06 18:59:14 +05:00
|
|
|
add_definitions(-DNGINTERFACE_EXPORTS)
|
|
|
|
add_library(csg ${NG_LIB_TYPE}
|
|
|
|
algprim.cpp brick.cpp
|
|
|
|
bspline2d.cpp csgeom.cpp csgparser.cpp curve2d.cpp edgeflw.cpp
|
|
|
|
explicitcurve2d.cpp extrusion.cpp gencyl.cpp genmesh.cpp identify.cpp
|
|
|
|
manifold.cpp meshsurf.cpp polyhedra.cpp revolution.cpp singularref.cpp
|
|
|
|
solid.cpp specpoin.cpp spline3d.cpp surface.cpp triapprox.cpp zrefine.cpp
|
2016-10-04 22:30:57 +05:00
|
|
|
python_csg.cpp splinesurface.cpp
|
2015-03-06 18:59:14 +05:00
|
|
|
)
|
|
|
|
if(APPLE)
|
|
|
|
set_target_properties( csg PROPERTIES SUFFIX ".so")
|
|
|
|
endif(APPLE)
|
|
|
|
|
2019-01-14 18:47:26 +05:00
|
|
|
target_link_libraries(csg PUBLIC mesh ${PYTHON_LIBRARIES})
|
|
|
|
install( TARGETS csg ${NG_INSTALL_DIR})
|
2015-03-06 18:59:14 +05:00
|
|
|
|
2019-01-08 15:30:11 +05:00
|
|
|
target_link_libraries(csg PUBLIC ngcore)
|
2015-03-06 18:59:14 +05:00
|
|
|
|
|
|
|
if(USE_GUI)
|
2015-10-19 13:08:30 +05:00
|
|
|
add_library(csgvis ${NG_LIB_TYPE} vscsg.cpp )
|
2015-03-06 18:59:14 +05:00
|
|
|
if(NOT WIN32)
|
|
|
|
target_link_libraries(csgvis csg visual)
|
|
|
|
if(APPLE)
|
|
|
|
set_target_properties( csgvis PROPERTIES SUFFIX ".so")
|
|
|
|
endif(APPLE)
|
2017-05-30 00:19:34 +05:00
|
|
|
install( TARGETS csgvis ${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
|
|
|
|
algprim.hpp brick.hpp csgeom.hpp csg.hpp csgparser.hpp
|
|
|
|
curve2d.hpp edgeflw.hpp explicitcurve2d.hpp extrusion.hpp
|
|
|
|
gencyl.hpp geoml.hpp identify.hpp manifold.hpp meshsurf.hpp
|
|
|
|
polyhedra.hpp revolution.hpp singularref.hpp solid.hpp
|
|
|
|
specpoin.hpp spline3d.hpp splinesurface.hpp surface.hpp
|
|
|
|
triapprox.hpp vscsg.hpp
|
2017-05-30 00:19:34 +05:00
|
|
|
DESTINATION ${NG_INSTALL_DIR_INCLUDE}/csg COMPONENT netgen_devel
|
2017-01-16 18:56:57 +05:00
|
|
|
)
|