-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
30 lines (23 loc) · 797 Bytes
/
CMakeLists.txt
File metadata and controls
30 lines (23 loc) · 797 Bytes
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
cmake_minimum_required(VERSION 3.12)
project(project VERSION 1.0
DESCRIPTION "exam_project_Serafino"
)
add_compile_options(-std=c++17)
# Search for muparserx
find_package(muparserx 4.0 REQUIRED)
include_directories(${muparserx_INCLUDE_DIRS})
# Search for Eigen
find_package(Eigen3 REQUIRED)
include_directories(SYSTEM ${EIGEN3_INCLUDE_DIRS})
# Search for Pybind
find_package(pybind11 REQUIRED)
include_directories(SYSTEM ${pybind11_INCLUDE_DIRS})
# Add the Python modules
pybind11_add_module(moduleH
MatrixModule/src/Matrix.cpp
MatrixModule/include/ThomasSolver.tpl.hpp
MatrixModule/src/HeatDiffusion.cpp
MatrixModule/src/Matrix_py.cpp
)
target_link_libraries(moduleH PRIVATE ${MUPARSERX_LIBRARY})
target_include_directories(moduleH PRIVATE MatrixModule/include)