netgen/nglib/CMakeLists.txt

21 lines
1.1 KiB
CMake
Raw Permalink Normal View History

target_sources(nglib PRIVATE nglib.cpp)
2015-03-06 18:59:14 +05: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 13:08:30 +05:00
2023-09-06 19:27:27 +05:00
if(EMSCRIPTEN)
2024-03-27 08:32:17 +05:00
target_compile_options(nglib PUBLIC $<BUILD_INTERFACE:$<TARGET_PROPERTY:ngcore,INTERFACE_COMPILE_OPTIONS>>)
2023-09-06 19:27:27 +05:00
target_compile_definitions(nglib PUBLIC $<TARGET_PROPERTY:ngcore,INTERFACE_COMPILE_DEFINITIONS>)
target_include_directories(nglib PUBLIC $<TARGET_PROPERTY:ngcore,INTERFACE_INCLUDE_DIRECTORIES>)
2024-10-07 21:04:20 +05:00
target_include_directories(nglib PRIVATE $<TARGET_PROPERTY:occ_libs,INTERFACE_INCLUDE_DIRECTORIES>)
target_link_libraries(nglib PRIVATE ${ZLIB_LIBRARIES} $<BUILD_INTERFACE:$<TARGET_PROPERTY:occ_libs,INTERFACE_LINK_LIBRARIES>>)
2023-09-06 19:27:27 +05:00
else(EMSCRIPTEN)
target_link_libraries(nglib PUBLIC ngcore)
2024-05-13 16:43:53 +05:00
target_link_libraries( nglib PRIVATE ${CMAKE_THREAD_LIBS_INIT} ${JPEG_LIBRARIES} ${MKL_LIBRARIES} ${ZLIB_LIBRARIES} occ_libs netgen_cgns )
2023-09-06 19:27:27 +05:00
endif(EMSCRIPTEN)
install(TARGETS nglib netgen_cgns ${NG_INSTALL_DIR})
install(FILES nglib.h DESTINATION ${NG_INSTALL_DIR_INCLUDE} COMPONENT netgen_devel)