2022-11-03 08:15:17 -07:00
|
|
|
cmake_minimum_required(VERSION 3.13)
|
|
|
|
set(CMAKE_C_STANDARD 11)
|
|
|
|
set(CMAKE_CXX_STANDARD 20)
|
|
|
|
project(aocpp19
|
|
|
|
VERSION 1
|
|
|
|
LANGUAGES C CXX
|
|
|
|
)
|
|
|
|
|
2022-11-04 17:39:35 -07:00
|
|
|
include(CheckIPOSupported)
|
|
|
|
check_ipo_supported(RESULT result OUTPUT output)
|
|
|
|
if(result)
|
|
|
|
set(CMAKE_INTERPROCEDURAL_OPTIMIZATION TRUE)
|
|
|
|
else()
|
|
|
|
message(WARNING "IPO is not supported: ${output}")
|
|
|
|
endif()
|
|
|
|
|
2022-11-03 08:15:17 -07:00
|
|
|
add_subdirectory(lib)
|
2022-11-06 21:12:30 -08:00
|
|
|
add_subdirectory(intcode)
|
|
|
|
|
|
|
|
add_executable(day01 day01.cpp)
|
|
|
|
target_link_libraries(day01 aocpp)
|
2022-11-03 08:15:17 -07:00
|
|
|
|
|
|
|
add_executable(day02 day02.cpp)
|
2022-11-06 21:12:30 -08:00
|
|
|
target_link_libraries(day02 aocpp intcode)
|
2022-11-03 08:15:17 -07:00
|
|
|
|
2022-11-07 17:19:17 -08:00
|
|
|
add_executable(day03 day03.cpp)
|
|
|
|
target_link_libraries(day03 aocpp)
|
|
|
|
|
2022-11-07 21:00:14 -08:00
|
|
|
add_executable(day04 day04.cpp)
|
|
|
|
target_link_libraries(day04 aocpp)
|
|
|
|
|
2022-11-03 08:15:17 -07:00
|
|
|
add_executable(day05 day05.cpp)
|
2022-11-06 21:12:30 -08:00
|
|
|
target_link_libraries(day05 aocpp intcode)
|
2022-11-03 08:15:17 -07:00
|
|
|
|
2022-11-07 21:00:14 -08:00
|
|
|
add_executable(day06 day06.cpp)
|
|
|
|
target_link_libraries(day06 aocpp)
|
|
|
|
|
2022-11-03 08:15:17 -07:00
|
|
|
add_executable(day07 day07.cpp)
|
2022-11-06 21:12:30 -08:00
|
|
|
target_link_libraries(day07 aocpp intcode)
|
2022-11-03 08:15:17 -07:00
|
|
|
|
|
|
|
add_executable(day09 day09.cpp)
|
2022-11-06 21:12:30 -08:00
|
|
|
target_link_libraries(day09 aocpp intcode)
|
2022-11-03 19:49:07 -07:00
|
|
|
|
|
|
|
add_executable(day11 day11.cpp)
|
2022-11-06 21:12:30 -08:00
|
|
|
target_link_libraries(day11 aocpp intcode)
|
2022-11-03 21:41:06 -07:00
|
|
|
|
|
|
|
add_executable(day13 day13.cpp)
|
2022-11-06 21:12:30 -08:00
|
|
|
target_link_libraries(day13 aocpp intcode)
|
2022-11-03 21:41:06 -07:00
|
|
|
|
|
|
|
add_executable(day15 day15.cpp)
|
2022-11-06 21:12:30 -08:00
|
|
|
target_link_libraries(day15 aocpp intcode)
|
2022-11-05 11:19:32 -07:00
|
|
|
|
|
|
|
add_executable(day23 day23.cpp)
|
2022-11-06 21:12:30 -08:00
|
|
|
target_link_libraries(day23 aocpp intcode)
|