mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-26 05:50:32 +05:00
39 lines
1.3 KiB
CMake
39 lines
1.3 KiB
CMake
if(USE_OCC)
|
|
|
|
add_definitions(-DNGINTERFACE_EXPORTS)
|
|
add_library(occ ${NG_LIB_TYPE}
|
|
Partition_Inter2d.cxx Partition_Inter3d.cxx
|
|
Partition_Loop.cxx Partition_Loop2d.cxx Partition_Loop3d.cxx Partition_Spliter.cxx
|
|
occgenmesh.cpp occgeom.cpp occmeshsurf.cpp python_occ.cpp
|
|
python_occ_basic.cpp python_occ_shapes.cpp
|
|
occ_face.cpp occ_edge.cpp occ_vertex.cpp occ_utils.cpp
|
|
)
|
|
if(USE_GUI)
|
|
add_library(occvis ${NG_LIB_TYPE} vsocc.cpp)
|
|
target_link_libraries(occvis PUBLIC ngcore)
|
|
endif(USE_GUI)
|
|
|
|
target_link_libraries(occ PUBLIC ngcore PRIVATE "$<BUILD_INTERFACE:netgen_python>")
|
|
|
|
if(NOT WIN32)
|
|
target_link_libraries( occ PRIVATE ${OCC_LIBRARIES} )
|
|
if(APPLE)
|
|
# Link AppKit in case OCE was built as static libraries
|
|
find_library(AppKit AppKit)
|
|
target_link_libraries( occ PRIVATE ${AppKit} )
|
|
endif(APPLE)
|
|
install( TARGETS occ ${NG_INSTALL_DIR})
|
|
if (USE_GUI)
|
|
target_link_libraries( occvis PUBLIC occ )
|
|
install( TARGETS occvis ${NG_INSTALL_DIR})
|
|
endif(USE_GUI)
|
|
endif(NOT WIN32)
|
|
|
|
install(FILES
|
|
occgeom.hpp occmeshsurf.hpp vsocc.hpp occ_utils.hpp
|
|
occ_vertex.hpp occ_edge.hpp occ_face.hpp occ_solid.hpp
|
|
DESTINATION ${NG_INSTALL_DIR_INCLUDE}/occ COMPONENT netgen_devel
|
|
)
|
|
|
|
endif(USE_OCC)
|