-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
22 lines (17 loc) · 868 Bytes
/
CMakeLists.txt
File metadata and controls
22 lines (17 loc) · 868 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
cmake_minimum_required(VERSION 3.20)
project(mercator Fortran CXX)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS} -Wall -Wextra -Wshadow -pedantic")
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS} -O2 -fopenmp -lpthread") # with -O3 compiler changes the code...
set(CMAKE_Fortran_FLAGS "-c -fpic -Wall -O3")
include_directories(include)
include_directories(include/*)
add_library(trapecis_Sd include/trapecis_Sd.f)
# add_library(trapecis_Sd_expected include/trapecis_Sd_expected.f)
set(source_dir "${PROJECT_SOURCE_DIR}/src/")
set(source_files "${source_dir}/embeddingS1_unix.cpp")
set(include_dir "${PROJECT_SOURCE_DIR}/include/")
file(GLOB include_files "${include_dir}/*.hpp")
add_executable(mercator ${source_files} ${include_files})
target_link_libraries(mercator trapecis_Sd)
# target_link_libraries(mercator trapecis_Sd_expected)