2021-09-02 15:04:19 -07:00
|
|
|
cmake_minimum_required(VERSION 3.10)
|
2021-09-02 15:25:09 -07:00
|
|
|
set(CMAKE_C_STANDARD 99)
|
2021-09-02 15:04:19 -07:00
|
|
|
|
|
|
|
project(advent C)
|
|
|
|
|
2021-09-02 15:25:09 -07:00
|
|
|
add_subdirectory(lib/libflint)
|
|
|
|
|
2021-09-02 15:04:19 -07:00
|
|
|
file(GLOB SRC src/*.c)
|
|
|
|
file(GLOB SRC2015 src/2015/*.c)
|
|
|
|
file(GLOB SRC2016 src/2016/*.c)
|
|
|
|
file(GLOB SRC2017 src/2017/*.c)
|
|
|
|
file(GLOB SRC2018 src/2018/*.c)
|
|
|
|
file(GLOB SRC2019 src/2019/*.c)
|
|
|
|
file(GLOB SRC2020 src/2020/*.c)
|
|
|
|
|
|
|
|
file(COPY input DESTINATION ${CMAKE_BINARY_DIR})
|
|
|
|
|
|
|
|
add_executable(advent ${SRC} ${SRC2015} ${SRC2016} ${SRC2017} ${SRC2018} ${SRC2019} ${SRC2020})
|
2021-09-02 15:25:09 -07:00
|
|
|
target_link_libraries(advent PRIVATE bsd flint)
|
|
|
|
target_include_directories(advent PRIVATE include lib/libflint/include)
|