diff --git a/libsrc/core/CMakeLists.txt b/libsrc/core/CMakeLists.txt index 8c8506fe..383bab85 100644 --- a/libsrc/core/CMakeLists.txt +++ b/libsrc/core/CMakeLists.txt @@ -67,7 +67,7 @@ endif(USE_NUMA) install(TARGETS ngcore DESTINATION ${NG_INSTALL_DIR} COMPONENT netgen) -target_link_libraries(ngcore PUBLIC netgen_mpi PRIVATE netgen_python ${CMAKE_THREAD_LIBS_INIT}) +target_link_libraries(ngcore PUBLIC netgen_mpi PRIVATE "$" ${CMAKE_THREAD_LIBS_INIT}) install(FILES ngcore.hpp archive.hpp type_traits.hpp version.hpp ngcore_api.hpp logging.hpp exception.hpp symboltable.hpp paje_trace.hpp utils.hpp profiler.hpp mpi_wrapper.hpp diff --git a/libsrc/csg/CMakeLists.txt b/libsrc/csg/CMakeLists.txt index 7d196b5b..52514038 100644 --- a/libsrc/csg/CMakeLists.txt +++ b/libsrc/csg/CMakeLists.txt @@ -11,7 +11,7 @@ if(APPLE) set_target_properties( csg PROPERTIES SUFFIX ".so") endif(APPLE) -target_link_libraries(csg PUBLIC mesh PRIVATE netgen_python) +target_link_libraries(csg PUBLIC mesh PRIVATE "$") if(NOT WIN32) install( TARGETS csg ${NG_INSTALL_DIR}) endif(NOT WIN32) @@ -20,7 +20,7 @@ target_link_libraries(csg PUBLIC ngcore) if(USE_GUI) add_library(csgvis ${NG_LIB_TYPE} vscsg.cpp ) - target_link_libraries(csgvis PRIVATE netgen_python PUBLIC ngcore) + target_link_libraries(csgvis PRIVATE "$" PUBLIC ngcore) if(NOT WIN32) target_link_libraries(csgvis PUBLIC csg visual) if(APPLE) diff --git a/libsrc/geom2d/CMakeLists.txt b/libsrc/geom2d/CMakeLists.txt index 466cc5c4..eafec27c 100644 --- a/libsrc/geom2d/CMakeLists.txt +++ b/libsrc/geom2d/CMakeLists.txt @@ -4,7 +4,7 @@ if(APPLE) set_target_properties( geom2d PROPERTIES SUFFIX ".so") endif(APPLE) -target_link_libraries(geom2d PUBLIC ngcore mesh PRIVATE netgen_python) +target_link_libraries(geom2d PUBLIC ngcore mesh PRIVATE "$") if(NOT WIN32) install( TARGETS geom2d ${NG_INSTALL_DIR}) endif(NOT WIN32) diff --git a/libsrc/meshing/CMakeLists.txt b/libsrc/meshing/CMakeLists.txt index 9bf45a89..342dd1e0 100644 --- a/libsrc/meshing/CMakeLists.txt +++ b/libsrc/meshing/CMakeLists.txt @@ -23,7 +23,7 @@ endif(APPLE) target_link_libraries( mesh PUBLIC ngcore PRIVATE gprim la gen ) -target_link_libraries( mesh PRIVATE netgen_metis netgen_python ${ZLIB_LIBRARIES} ) +target_link_libraries( mesh PRIVATE netgen_metis "$" ${ZLIB_LIBRARIES} ) if(NOT WIN32) install( TARGETS mesh ${NG_INSTALL_DIR}) endif(NOT WIN32) diff --git a/libsrc/occ/CMakeLists.txt b/libsrc/occ/CMakeLists.txt index 7e7a2a65..9db6271b 100644 --- a/libsrc/occ/CMakeLists.txt +++ b/libsrc/occ/CMakeLists.txt @@ -9,7 +9,7 @@ if(USE_GUI) target_link_libraries(occvis PUBLIC ngcore) endif(USE_GUI) -target_link_libraries(occ PUBLIC ngcore PRIVATE netgen_python) +target_link_libraries(occ PUBLIC ngcore PRIVATE "$") if(NOT WIN32) target_link_libraries( occ PRIVATE ${OCC_LIBRARIES} ) diff --git a/libsrc/stlgeom/CMakeLists.txt b/libsrc/stlgeom/CMakeLists.txt index f8ce2fd3..81d4e836 100644 --- a/libsrc/stlgeom/CMakeLists.txt +++ b/libsrc/stlgeom/CMakeLists.txt @@ -8,11 +8,11 @@ if(NOT WIN32) install( TARGETS stl ${NG_INSTALL_DIR}) endif(NOT WIN32) -target_link_libraries( stl PUBLIC ngcore PRIVATE netgen_python ) +target_link_libraries( stl PUBLIC ngcore PRIVATE "$" ) if(USE_GUI) add_library(stlvis ${NG_LIB_TYPE} vsstl.cpp) - target_link_libraries(stlvis PRIVATE netgen_python PUBLIC ngcore) + target_link_libraries(stlvis PRIVATE "$" PUBLIC ngcore) if(NOT WIN32) target_link_libraries( stlvis PUBLIC stl ) install( TARGETS stlvis ${NG_INSTALL_DIR}) diff --git a/libsrc/visualization/CMakeLists.txt b/libsrc/visualization/CMakeLists.txt index a5604fb6..2a83c0e0 100644 --- a/libsrc/visualization/CMakeLists.txt +++ b/libsrc/visualization/CMakeLists.txt @@ -9,7 +9,7 @@ endif(USE_GUI) add_library(visual ${NG_LIB_TYPE} ${LIB_VISUAL_SOURCES}) -target_link_libraries( visual PUBLIC ngcore PRIVATE netgen_python ${MPI_CXX_LIBRARIES} ${OPENGL_LIBRARIES} ) +target_link_libraries( visual PUBLIC ngcore PRIVATE "$" ${MPI_CXX_LIBRARIES} ${OPENGL_LIBRARIES} ) install( TARGETS visual ${NG_INSTALL_DIR}) install(FILES diff --git a/ng/CMakeLists.txt b/ng/CMakeLists.txt index 82350afc..235ad46c 100644 --- a/ng/CMakeLists.txt +++ b/ng/CMakeLists.txt @@ -47,7 +47,7 @@ if(USE_GUI) if(WIN32) set_target_properties( gui PROPERTIES OUTPUT_NAME libgui ) endif(WIN32) - target_link_libraries( gui PRIVATE netgen_python ) + target_link_libraries( gui PRIVATE "$" ) endif(USE_GUI) @@ -61,7 +61,7 @@ if(USE_PYTHON) endif() add_library(ngpy SHARED netgenpy.cpp) - target_link_libraries( ngpy PUBLIC nglib PRIVATE netgen_python ) + target_link_libraries( ngpy PUBLIC nglib PRIVATE "$" ) if(APPLE) set_target_properties( ngpy PROPERTIES SUFFIX ".so") elseif(WIN32)