forked from tommasotrabacchinpolimi/Eikonal-Serial-Solver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
30 lines (23 loc) · 924 Bytes
/
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
cmake_minimum_required(VERSION 3.20)
project(Eikonal_Cesaroni_Tonarelli_Trabacchin)
set(CMAKE_CXX_STANDARD 20)
include_directories(src)
#include_directories("/u/sw/toolchains/gcc-glibc/11.2.0/pkgs/eigen/3.3.9/include/eigen3")
include_directories("/apps/USE/easybuild/release/2023.1/software/Eigen/3.4.0-GCCcore-12.3.0/include/Eigen") #for MeluXina
include_directories(${EIGEN})
include_directories("localProblem/include")
add_compile_options(-I${mkEigenInc})
add_executable(tetrahedrical
test/test_tetrahedricalMesh.cpp
)
add_executable(triangular
test/test_triangularMesh.cpp
)
add_executable(triangulated
test/test_triangulatedMesh.cpp
)
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fopenmp")
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O3")
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall")
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wextra")
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++20")