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-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)
|