2022-04-27 13:42:04 +02:00
|
|
|
target_sources(nglib PRIVATE nglib.cpp)
|
2015-03-06 14:59:14 +01:00
|
|
|
|
2022-04-27 13:42:04 +02:00
|
|
|
if(USE_OCC)
|
|
|
|
target_sources(nglib PRIVATE nglib_occ.cpp)
|
|
|
|
install(FILES nglib_occ.h DESTINATION ${NG_INSTALL_DIR_INCLUDE} COMPONENT netgen_devel)
|
|
|
|
endif(USE_OCC)
|
2015-10-19 10:08:30 +02:00
|
|
|
|
2023-09-06 16:27:27 +02:00
|
|
|
if(EMSCRIPTEN)
|
|
|
|
target_compile_options(nglib PUBLIC $<TARGET_PROPERTY:ngcore,INTERFACE_COMPILE_OPTIONS>)
|
|
|
|
target_compile_definitions(nglib PUBLIC $<TARGET_PROPERTY:ngcore,INTERFACE_COMPILE_DEFINITIONS>)
|
|
|
|
target_include_directories(nglib PUBLIC $<TARGET_PROPERTY:ngcore,INTERFACE_INCLUDE_DIRECTORIES>)
|
|
|
|
else(EMSCRIPTEN)
|
|
|
|
target_link_libraries(nglib PUBLIC ngcore)
|
2023-09-16 19:25:43 +02:00
|
|
|
target_link_libraries( nglib PRIVATE ${MPI_CXX_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT} ${JPEG_LIBRARIES} ${MKL_LIBRARIES} ${ZLIB_LIBRARIES} occ_libs netgen_cgns )
|
2023-09-06 16:27:27 +02:00
|
|
|
endif(EMSCRIPTEN)
|
2018-12-12 11:05:17 +01:00
|
|
|
|
2022-04-27 13:42:04 +02:00
|
|
|
install(TARGETS nglib netgen_cgns ${NG_INSTALL_DIR})
|
2018-01-23 10:06:12 +01:00
|
|
|
install(FILES nglib.h DESTINATION ${NG_INSTALL_DIR_INCLUDE} COMPONENT netgen_devel)
|