mirror of
https://github.com/NGSolve/netgen.git
synced 2024-11-12 00:59:16 +05:00
94ecf8de92
The CMake export of Interface libraries also exports PRIVATE build settings, which leads to build errors with non-existing include paths and .lib files for binary distributions. Use the work-around mentioned here to circumvent this behavior: https://gitlab.kitware.com/cmake/cmake/-/issues/15415#note_849405
27 lines
868 B
CMake
27 lines
868 B
CMake
add_library(stl ${NG_LIB_TYPE}
|
|
meshstlsurface.cpp stlgeom.cpp stlgeomchart.cpp
|
|
stlgeommesh.cpp stlline.cpp stltool.cpp stltopology.cpp python_stl.cpp
|
|
)
|
|
|
|
if(NOT WIN32)
|
|
target_link_libraries( stl PUBLIC mesh )
|
|
install( TARGETS stl ${NG_INSTALL_DIR})
|
|
endif(NOT WIN32)
|
|
|
|
target_link_libraries( stl PUBLIC ngcore PRIVATE "$<BUILD_INTERFACE:netgen_python>" )
|
|
|
|
if(USE_GUI)
|
|
add_library(stlvis ${NG_LIB_TYPE} vsstl.cpp)
|
|
target_link_libraries(stlvis PRIVATE "$<BUILD_INTERFACE:netgen_python>" PUBLIC ngcore)
|
|
if(NOT WIN32)
|
|
target_link_libraries( stlvis PUBLIC stl )
|
|
install( TARGETS stlvis ${NG_INSTALL_DIR})
|
|
endif(NOT WIN32)
|
|
endif(USE_GUI)
|
|
|
|
install(FILES
|
|
meshstlsurface.hpp stlgeom.hpp stlline.hpp
|
|
stltool.hpp stltopology.hpp vsstl.hpp
|
|
DESTINATION ${NG_INSTALL_DIR_INCLUDE}/stlgeom COMPONENT netgen_devel
|
|
)
|