-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
76 lines (61 loc) · 2.83 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
73
74
75
76
cmake_minimum_required(VERSION 3.23)
project(AoC)
set(CMAKE_CXX_STANDARD 14)
include_directories(src)
set(STANDARD_SRC
src/main.cpp)
set(SRC_2015
src/2015/aoc_2015_01.cpp src/2015/aoc_2015_01.hpp
src/2015/aoc_2015_02.cpp src/2015/aoc_2015_02.hpp
src/2015/aoc_2015_03.cpp src/2015/aoc_2015_03.hpp
src/2015/aoc_2015_04.cpp src/2015/aoc_2015_04.hpp
src/2015/aoc_2015_05.cpp src/2015/aoc_2015_05.hpp
src/2015/aoc_2015_06.cpp src/2015/aoc_2015_06.hpp)
set(SRC_2016
src/2016/aoc_2016_01.cpp src/2016/aoc_2016_01.hpp
src/2016/aoc_2016_02.cpp src/2016/aoc_2016_02.hpp
src/2016/aoc_2016_03.cpp src/2016/aoc_2016_03.hpp)
set(SRC_2017
src/2017/aoc_2017_01.cpp src/2017/aoc_2017_01.hpp
src/2017/aoc_2017_02.cpp src/2017/aoc_2017_02.hpp
src/2017/aoc_2017_03.cpp src/2017/aoc_2017_03.hpp)
set(SRC_2018
src/2018/aoc_2018_01.cpp src/2018/aoc_2018_01.hpp
src/2018/aoc_2018_02.cpp src/2018/aoc_2018_02.hpp
src/2018/aoc_2018_03.cpp src/2018/aoc_2018_03.hpp)
set(SRC_2019
src/2019/aoc_2019_01.cpp src/2019/aoc_2019_01.hpp
src/2019/aoc_2019_02.cpp src/2019/aoc_2019_02.hpp
src/2019/aoc_2019_03.cpp src/2019/aoc_2019_03.hpp)
set(SRC_2020
src/2020/aoc_2020_01.cpp src/2020/aoc_2020_01.hpp
src/2020/aoc_2020_02.cpp src/2020/aoc_2020_02.hpp
src/2020/aoc_2020_03.cpp src/2020/aoc_2020_03.hpp)
set(SRC_2021
src/2021/aoc_2021_01.cpp src/2021/aoc_2021_01.hpp
src/2021/aoc_2021_02.cpp src/2021/aoc_2021_02.hpp
src/2021/aoc_2021_03.cpp src/2021/aoc_2021_03.hpp)
set(SRC_2022
src/2022/aoc_2022_01.cpp src/2022/aoc_2022_01.hpp
src/2022/aoc_2022_02.cpp src/2022/aoc_2022_02.hpp
src/2022/aoc_2022_03.cpp src/2022/aoc_2022_03.hpp
src/2022/aoc_2022_04.cpp src/2022/aoc_2022_04.hpp
src/2022/aoc_2022_05.cpp src/2022/aoc_2022_05.hpp
src/2022/aoc_2022_06.cpp src/2022/aoc_2022_06.hpp
src/2022/aoc_2022_07.cpp src/2022/aoc_2022_07.hpp
src/2022/aoc_2022_08.cpp src/2022/aoc_2022_08.hpp
src/2022/aoc_2022_09.cpp src/2022/aoc_2022_09.hpp
src/2022/aoc_2022_10.cpp src/2022/aoc_2022_10.hpp
src/2022/aoc_2022_11.cpp src/2022/aoc_2022_11.hpp)
set(SRC_2023
src/2023/aoc_2023_01.cpp src/2023/aoc_2023_01.hpp
src/2023/aoc_2023_02.cpp src/2023/aoc_2023_02.hpp
src/2023/aoc_2023_03.cpp src/2023/aoc_2023_03.hpp
src/2023/aoc_2023_04.cpp src/2023/aoc_2023_04.hpp
src/2023/aoc_2023_05.cpp src/2023/aoc_2023_05.hpp)
#OpenSSl for 2015 day 4
find_package(OpenSSL REQUIRED)
add_executable(${PROJECT_NAME} ${STANDARD_SRC} ${SRC_2015} ${SRC_2016} ${SRC_2017} ${SRC_2018} ${SRC_2019} ${SRC_2020}
${SRC_2021} ${SRC_2022} ${SRC_2023})
#OpenSSL for 2015 day 4
target_link_libraries(${PROJECT_NAME} OpenSSL::Crypto)