-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
executable file
·75 lines (58 loc) · 1.96 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
#--------------------------------------------------------------------
# Preliminary Settings
#--------------------------------------------------------------------
cmake_minimum_required(VERSION 3.20)
project(pyOpenSMOKE
VERSION 0.1.0
DESCRIPTION
"High level interfaces to the OpenSMOKEpp framework"
LANGUAGES CXX
)
# --- Set module path in order to use custom CMake modules
set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake" ${CMAKE_MODULE_PATH})
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
set(CMAKE_COLOR_MAKEFILE ON)
# --------------------------------------------------------------------
# Compilation options
# --------------------------------------------------------------------
# --------------------------------------------------------------------
# Compulsory (external) libraries
# --------------------------------------------------------------------
# --- Eigen (Compulsory)
find_package(Eigen3 REQUIRED)
# --- Boost (Compulsory)
# --- TODO Clean boost lib I don't think we need all of them
find_package(Boost REQUIRED
COMPONENTS
date_time
filesystem
program_options
system
regex
timer
chrono
serialization
)
# --- pybind11 (Compulsory)
find_package(pybind11 REQUIRED)
# --- OpenSMOKE++ (Compulsory)
find_package(OpenSMOKEpp REQUIRED)
# --- OpenSMOKE++ Solvers (Compulsory)
find_package(OpenSMOKEppSolvers REQUIRED)
# --- OpenBLAS library (Compulsory)
set (BLA_VENDOR OpenBLAS)
set (BLA_STATIC ON)
find_package(BLAS REQUIRED)
# --------------------------------------------------------------------
# Subdirectories
# --------------------------------------------------------------------
add_subdirectory(source)
# --------------------------------------------------------------------
# Documentation
# --------------------------------------------------------------------
# TODO
# --------------------------------------------------------------------
# Testing
# --------------------------------------------------------------------
# TODO