-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
55 lines (48 loc) · 1.05 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
add_subdirectory(maps)
add_subdirectory(ideal_reactors)
pybind11_add_module(${PROJECT_NAME}
${CMAKE_CURRENT_LIST_DIR}/pyOpenSMOKE.cpp
)
target_link_libraries(${PROJECT_NAME}
PUBLIC
Eigen3::Eigen
Boost::date_time
Boost::filesystem
Boost::program_options
Boost::system
Boost::regex
Boost::timer
Boost::chrono
Boost::serialization
BLAS::BLAS
blocktdsge
OpenSMOKEMaps
BatchReactor
)
target_include_directories(${PROJECT_NAME}
PUBLIC
${CMAKE_CURRENT_LIST_DIR}
${OPENSMOKE_INCLUDE_DIR}
${BLAS_ROOT}/include
)
target_compile_options(${PROJECT_NAME}
PRIVATE
-Wno-unused-value
-Wno-mismatched-new-delete
-Wno-switch
-Wno-dangling-else
-Wno-return-type-c-linkage
)
target_compile_definitions(${PROJECT_NAME}
PRIVATE
OPENSMOKE_USE_OPENBLAS=1
VERSION_INFO=${EXAMPLE_VERSION_INFO}
)
# --------------------------------------------------------------------
# Installing options
# --------------------------------------------------------------------
install(TARGETS
${PROJECT_NAME}
DESTINATION
${CMAKE_INSTALL_PREFIX}
)