banan-os/userspace/aoc2024/CMakeLists.txt

29 lines
715 B
CMake
Raw 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
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)