banan-os/userspace/aoc2024/CMakeLists.txt

51 lines
863 B
CMake
Raw Permalink Normal View History

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
day8
day9
2024-12-10 17:26:39 +02:00
day10
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
day23
day24
day25
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})
target_link_options(aoc2024_${AOC2024_PROJECT} PRIVATE -nolibc)
target_compile_options(aoc2024_${AOC2024_PROJECT} PRIVATE -g -O2 -Wall -Wextra -Werror)
endforeach()
add_dependencies(userspace aoc2024)