aocpp/CMakeLists.txt
2023-04-08 16:54:22 -07:00

36 lines
847 B
CMake

cmake_minimum_required(VERSION 3.13)
set(CMAKE_C_STANDARD 11)
set(CMAKE_CXX_STANDARD 20)
project(aocpp
VERSION 1
LANGUAGES C CXX
)
if(NOT CMAKE_BUILD_TYPE MATCHES "^Debug$")
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()
endif()
find_package(PkgConfig)
pkg_check_modules(GMP REQUIRED IMPORTED_TARGET gmpxx)
pkg_check_modules(Z3 REQUIRED IMPORTED_TARGET z3)
find_package(Boost REQUIRED)
add_subdirectory(lib)
add_subdirectory(dlx)
add_subdirectory(knothash)
add_subdirectory(zmod)
add_subdirectory(intcode)
add_subdirectory(2016)
add_subdirectory(2017)
add_subdirectory(2018)
add_subdirectory(2019)
add_subdirectory(2020)
add_subdirectory(2021)
add_subdirectory(2022)