-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
executable file
·72 lines (64 loc) · 1.39 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
cmake_minimum_required(VERSION 3.17)
project(advent_of_code)
set(CMAKE_CXX_COMPILER "/usr/bin/g++-11")
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_BUILD_TYPE Release)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
# Dependencies
# If dependencies are managed with conan, we prepend the current build folder
# to the CMake module path, where CMake looks for dependencies.
if(EXISTS ${CMAKE_CURRENT_BINARY_DIR}/conaninfo.txt)
list(PREPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_BINARY_DIR}")
endif()
find_package(DataFrame)
find_package(range-v3)
find_package(fmt)
find_package(Boost)
include_directories(
include
${CMAKE_CURRENT_SOURCE_DIR}/input)
add_executable(day1 src/day1.cpp)
add_executable(day2 src/day2.cpp)
add_executable(day3 src/day3.cpp)
add_executable(day4 src/day4.cpp)
add_executable(day5 src/day5.cpp)
target_compile_features(day2
PRIVATE
cxx_std_20
)
target_link_libraries(day2
PRIVATE
DataFrame::DataFrame
fmt::fmt
range-v3::range-v3
)
target_compile_features(day3
PRIVATE
cxx_std_20
)
target_link_libraries(day3
PRIVATE
DataFrame::DataFrame
fmt::fmt
range-v3::range-v3
)
target_compile_features(day4
PRIVATE
cxx_std_20
)
target_link_libraries(day4
PRIVATE
DataFrame::DataFrame
fmt::fmt
range-v3::range-v3
Boost::boost
)
target_compile_features(day5
PRIVATE
cxx_std_20
)
target_link_libraries(day5
PRIVATE
fmt::fmt
)