2024-12-01 02:47:01 +02:00
|
|
|
set(AOC2024_PROJECTS
|
2024-12-01 07:38:21 +02:00
|
|
|
day1
|
2024-12-02 20:12:52 +02:00
|
|
|
day2
|
2024-12-03 16:27:07 +02:00
|
|
|
day3
|
2024-12-05 08:16:12 +02:00
|
|
|
day4
|
2024-12-05 08:16:34 +02:00
|
|
|
day5
|
2024-12-07 01:08:08 +02:00
|
|
|
day6
|
2024-12-07 07:34:21 +02:00
|
|
|
day7
|
2024-12-08 16:14:39 +02:00
|
|
|
day8
|
2024-12-09 16:20:21 +02:00
|
|
|
day9
|
2024-12-10 17:26:39 +02:00
|
|
|
day10
|
2024-12-11 09:05:52 +02:00
|
|
|
day11
|
2024-12-12 17:03:31 +02:00
|
|
|
day12
|
2024-12-14 03:17:55 +02:00
|
|
|
day13
|
2024-12-14 23:52:22 +02:00
|
|
|
day14
|
2024-12-15 20:45:57 +02:00
|
|
|
day15
|
2024-12-16 17:23:08 +02:00
|
|
|
day16
|
2024-12-17 23:30:37 +02:00
|
|
|
day17
|
2024-12-18 14:00:22 +02:00
|
|
|
day18
|
2024-12-19 12:57:28 +02:00
|
|
|
day19
|
2024-12-20 21:31:10 +02:00
|
|
|
day20
|
2024-12-22 01:03:26 +02:00
|
|
|
day21
|
2024-12-23 01:47:27 +02:00
|
|
|
day22
|
2024-12-23 21:20:47 +02:00
|
|
|
day23
|
2024-12-25 18:13:20 +02:00
|
|
|
day24
|
2024-12-25 18:13:57 +02:00
|
|
|
day25
|
2024-12-01 02:47:01 +02:00
|
|
|
full
|
|
|
|
)
|
|
|
|
|
|
|
|
set(BANAN_AOC2024_BIN ${CMAKE_INSTALL_BINDIR}/aoc2024)
|
|
|
|
set(BANAN_AOC2024_INPUT ${BANAN_SHARE}/aoc2024)
|
|
|
|
|
|
|
|
set(CMAKE_INSTALL_BINDIR ${BANAN_AOC2024_BIN})
|
|
|
|
|
|
|
|
add_custom_target(aoc2024)
|
|
|
|
|
|
|
|
file(GLOB_RECURSE input_files "input/*")
|
|
|
|
foreach(file ${input_files})
|
|
|
|
install(FILES ${file} DESTINATION ${BANAN_AOC2024_INPUT})
|
|
|
|
endforeach()
|
|
|
|
|
|
|
|
foreach(AOC2024_PROJECT ${AOC2024_PROJECTS})
|
|
|
|
add_subdirectory(${AOC2024_PROJECT})
|
|
|
|
add_dependencies(aoc2024 aoc2024_${AOC2024_PROJECT})
|
2024-12-02 03:44:18 +02:00
|
|
|
|
|
|
|
target_link_options(aoc2024_${AOC2024_PROJECT} PRIVATE -nolibc)
|
|
|
|
target_compile_options(aoc2024_${AOC2024_PROJECT} PRIVATE -g -O2 -Wall -Wextra -Werror)
|
2024-12-01 02:47:01 +02:00
|
|
|
endforeach()
|
|
|
|
|
|
|
|
add_dependencies(userspace aoc2024)
|