diff --git a/nglib/CMakeLists.txt b/nglib/CMakeLists.txt index 47eb6597..cebdaeb7 100644 --- a/nglib/CMakeLists.txt +++ b/nglib/CMakeLists.txt @@ -5,15 +5,13 @@ if(USE_OCC) install(FILES nglib_occ.h DESTINATION ${NG_INSTALL_DIR_INCLUDE} COMPONENT netgen_devel) endif(USE_OCC) +target_link_libraries(nglib PUBLIC ngcore PRIVATE ${ZLIB_LIBRARIES}) + if(EMSCRIPTEN) - target_compile_options(nglib PUBLIC $>) - target_compile_definitions(nglib PUBLIC $) - target_include_directories(nglib PUBLIC $) target_include_directories(nglib PRIVATE $) - target_link_libraries(nglib PRIVATE ${ZLIB_LIBRARIES} $>) + target_link_libraries(nglib PRIVATE $>) else(EMSCRIPTEN) - target_link_libraries(nglib PUBLIC ngcore) - target_link_libraries( nglib PRIVATE ${CMAKE_THREAD_LIBS_INIT} ${JPEG_LIBRARIES} ${MKL_LIBRARIES} ${ZLIB_LIBRARIES} occ_libs netgen_cgns ) + target_link_libraries( nglib PRIVATE ${CMAKE_THREAD_LIBS_INIT} ${JPEG_LIBRARIES} ${MKL_LIBRARIES} occ_libs netgen_cgns ) endif(EMSCRIPTEN) install(TARGETS nglib netgen_cgns ${NG_INSTALL_DIR})