update cmakelists
parent
d3c898bf3f
commit
e2573bc470
|
@ -1,13 +1,20 @@
|
||||||
# cmake_minimum_required(VERSION 3.25)
|
cmake_minimum_required(VERSION 3.24)
|
||||||
project(sim_econ_model)
|
project(sim_econ_model)
|
||||||
include_directories(include/)
|
include_directories(include/)
|
||||||
set(CMAKE_CXX_COMPILER /usr/bin/g++)
|
|
||||||
|
# if (APPLE)
|
||||||
|
# set(CMAKE_CXX_COMPILER /usr/bin/clang++)
|
||||||
|
# set(COMPILE_FLAGS "-Wl -export_dynamic")
|
||||||
|
# else(LINUX)
|
||||||
|
# set(CMAKE_CXX_COMPILER /usr/bin/g++)
|
||||||
|
# endif()
|
||||||
|
|
||||||
find_package(SWIG 4.0 REQUIRED COMPONENTS python)
|
find_package(SWIG 4.0 REQUIRED COMPONENTS python)
|
||||||
include(UseSWIG)
|
include(UseSWIG)
|
||||||
|
|
||||||
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
|
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
|
||||||
|
|
||||||
|
# find_package(PythonLibs 3.10 EXACT REQUIRED)
|
||||||
find_package(PythonLibs)
|
find_package(PythonLibs)
|
||||||
include_directories(${PYTHON_INCLUDE_PATH})
|
include_directories(${PYTHON_INCLUDE_PATH})
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue