mirror of
https://github.com/NGSolve/netgen.git
synced 2025-04-12 16:17:29 +05:00
[cmake] Link ngcore to other libraries
This commit is contained in:
parent
247b2a2892
commit
460ee696fd
@ -2,7 +2,13 @@ if(NOT CMAKE_BUILD_TYPE)
|
|||||||
set(CMAKE_BUILD_TYPE "RelWithDebInfo" CACHE STRING INTERNAL)
|
set(CMAKE_BUILD_TYPE "RelWithDebInfo" CACHE STRING INTERNAL)
|
||||||
endif(NOT CMAKE_BUILD_TYPE)
|
endif(NOT CMAKE_BUILD_TYPE)
|
||||||
|
|
||||||
cmake_minimum_required(VERSION 3.1.3)
|
if(WIN32)
|
||||||
|
# we are linking to object libraries on Windows
|
||||||
|
cmake_minimum_required(VERSION 3.12)
|
||||||
|
else(WIN32)
|
||||||
|
cmake_minimum_required(VERSION 3.1.3)
|
||||||
|
endif(WIN32)
|
||||||
|
|
||||||
if(NOT WIN32)
|
if(NOT WIN32)
|
||||||
option( USE_NATIVE_ARCH "build which -march=native" ON)
|
option( USE_NATIVE_ARCH "build which -march=native" ON)
|
||||||
endif(NOT WIN32)
|
endif(NOT WIN32)
|
||||||
|
@ -12,11 +12,11 @@ if(APPLE)
|
|||||||
endif(APPLE)
|
endif(APPLE)
|
||||||
|
|
||||||
if(NOT WIN32)
|
if(NOT WIN32)
|
||||||
target_link_libraries(csg mesh ${PYTHON_LIBRARIES})
|
target_link_libraries(csg PUBLIC mesh ${PYTHON_LIBRARIES})
|
||||||
target_link_libraries(csg ${PYTHON_LIBRARIES})
|
|
||||||
install( TARGETS csg ${NG_INSTALL_DIR})
|
install( TARGETS csg ${NG_INSTALL_DIR})
|
||||||
endif(NOT WIN32)
|
endif(NOT WIN32)
|
||||||
|
|
||||||
|
target_link_libraries(csg PUBLIC ngcore)
|
||||||
|
|
||||||
if(USE_GUI)
|
if(USE_GUI)
|
||||||
add_library(csgvis ${NG_LIB_TYPE} vscsg.cpp )
|
add_library(csgvis ${NG_LIB_TYPE} vscsg.cpp )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user