update cmakelists

master
michael 2022-12-03 00:44:58 -08:00
parent d3c898bf3f
commit e2573bc470
1 changed files with 9 additions and 2 deletions

View File

@ -1,13 +1,20 @@
# cmake_minimum_required(VERSION 3.25)
cmake_minimum_required(VERSION 3.24)
project(sim_econ_model)
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)
include(UseSWIG)
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
# find_package(PythonLibs 3.10 EXACT REQUIRED)
find_package(PythonLibs)
include_directories(${PYTHON_INCLUDE_PATH})