aoc/CMakeLists.txt

17 lines
527 B
CMake
Raw Normal View History

2021-09-02 15:04:19 -07:00
cmake_minimum_required(VERSION 3.10)
project(advent C)
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})
target_link_libraries(advent PRIVATE bsd)
target_include_directories(advent PRIVATE include)