-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
27 lines (23 loc) · 1.24 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
cmake_minimum_required(VERSION 3.0.0)
project(stellar VERSION 0.1.0)
include(CTest)
enable_testing()
#link_directories("/opt/homebrew/Cellar/eigen/3.4.0_1/include/eigen3")
include_directories("/opt/homebrew/Cellar/eigen/3.4.0_1/include/eigen3")
include_directories("/opt/homebrew/Cellar/[email protected]/3.9.12/Frameworks/Python.framework/Versions/3.9/include/python3.9/")
include_directories("/opt/homebrew/lib/python3.9/site-packages/numpy/core/include/")
include_directories("src")
link_directories("/opt/python-3.10.4/lib")
link_libraries("python3.10")
add_executable(stellar src/main.cpp src/Stellar.cpp src/Stellar.h)
add_executable(sun example/sun.cpp src/Stellar.cpp src/Stellar.h)
add_executable(sun10 example/sun10.cpp src/Stellar.cpp src/Stellar.h)
add_executable(sun80 example/sun80.cpp src/Stellar.cpp src/Stellar.h)
add_executable(sun100 example/sun100.cpp src/Stellar.cpp src/Stellar.h)
add_executable(sun10_100 example/sun10_100.cpp src/Stellar.cpp src/Stellar.h)
add_executable(energy_gen example/energy_gen.cpp src/Stellar.cpp src/Stellar.h)
add_executable(energy_gen_KIP example/energy_gen_KIP.cpp src/Stellar.cpp src/Stellar.h)
set(CMAKE_CXX_FLAGS "-O4")
set(CPACK_PROJECT_NAME ${PROJECT_NAME})
set(CPACK_PROJECT_VERSION ${PROJECT_VERSION})
include(CPack)