2017-01-31 18:58:01 +05:00
|
|
|
add_definitions(-DNGINTERFACE_EXPORTS)
|
2015-03-06 18:59:14 +05:00
|
|
|
add_library(occ ${NG_LIB_TYPE}
|
|
|
|
Partition_Inter2d.cxx Partition_Inter3d.cxx
|
|
|
|
Partition_Loop.cxx Partition_Loop2d.cxx Partition_Loop3d.cxx Partition_Spliter.cxx
|
2021-03-08 06:33:00 +05:00
|
|
|
occgenmesh.cpp occgeom.cpp occmeshsurf.cpp python_occ.cpp
|
2021-08-06 13:41:18 +05:00
|
|
|
python_occ_basic.cpp python_occ_shapes.cpp
|
2015-03-06 18:59:14 +05:00
|
|
|
)
|
2018-11-27 20:23:47 +05:00
|
|
|
if(USE_GUI)
|
|
|
|
add_library(occvis ${NG_LIB_TYPE} vsocc.cpp)
|
2020-01-17 03:58:56 +05:00
|
|
|
target_link_libraries(occvis PUBLIC ngcore)
|
2018-11-27 20:23:47 +05:00
|
|
|
endif(USE_GUI)
|
2015-03-06 18:59:14 +05:00
|
|
|
|
2020-12-18 15:05:10 +05:00
|
|
|
target_link_libraries(occ PUBLIC ngcore PRIVATE "$<BUILD_INTERFACE:netgen_python>")
|
2019-01-08 17:12:12 +05:00
|
|
|
|
2015-03-06 18:59:14 +05:00
|
|
|
if(NOT WIN32)
|
2019-11-27 00:26:18 +05:00
|
|
|
target_link_libraries( occ PRIVATE ${OCC_LIBRARIES} )
|
2019-10-18 19:38:50 +05:00
|
|
|
if(USE_OCC AND APPLE)
|
|
|
|
# Link AppKit in case OCE was built as static libraries
|
|
|
|
find_library(AppKit AppKit)
|
|
|
|
target_link_libraries( occ PRIVATE ${AppKit} )
|
|
|
|
endif(USE_OCC AND APPLE)
|
2018-11-27 20:29:07 +05:00
|
|
|
install( TARGETS occ ${NG_INSTALL_DIR})
|
2018-11-27 20:23:47 +05:00
|
|
|
if (USE_GUI)
|
2019-01-08 17:12:12 +05:00
|
|
|
target_link_libraries( occvis PUBLIC occ )
|
2018-11-27 20:29:07 +05:00
|
|
|
install( TARGETS occvis ${NG_INSTALL_DIR})
|
2018-11-27 20:23:47 +05:00
|
|
|
endif(USE_GUI)
|
2015-03-06 18:59:14 +05:00
|
|
|
endif(NOT WIN32)
|
|
|
|
|
2017-01-16 18:56:57 +05:00
|
|
|
install(FILES
|
|
|
|
occgeom.hpp occmeshsurf.hpp vsocc.hpp
|
2017-05-30 00:19:34 +05:00
|
|
|
DESTINATION ${NG_INSTALL_DIR_INCLUDE}/occ COMPONENT netgen_devel
|
2017-01-16 18:56:57 +05:00
|
|
|
)
|