-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
45 lines (32 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
cmake_minimum_required(VERSION 3.22.1)
project(black_scholes_cpp LANGUAGES CXX)
include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake)
conan_basic_setup()
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -std=c++20 -Og -ggdb -Wall -Wextra -pedantic -Werror")
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -std=c++20 -O3 -Wall -Wextra -pedantic -Werror")
include(cmake/clangtidy.cmake)
include(cmake/cppcheck.cmake)
add_subdirectory(tst)
add_executable(
bsm
bsm/main.cpp
)
target_sources(
bsm
PRIVATE
"${CMAKE_SOURCE_DIR}/bsm/arg_parser.cpp"
)
target_include_directories(
bsm
PRIVATE
bsm
include
)
include(cmake/pch.cmake)
target_link_libraries(bsm ${CONAN_LIBS})
target_compile_features(bsm PUBLIC cxx_std_20)
include(cmake/asan.cmake)