2022-11-03 08:15:17 -07:00
|
|
|
cmake_minimum_required(VERSION 3.13)
|
|
|
|
set(CMAKE_C_STANDARD 11)
|
|
|
|
set(CMAKE_CXX_STANDARD 20)
|
2022-11-18 14:50:42 -08:00
|
|
|
project(aocpp
|
2022-11-03 08:15:17 -07:00
|
|
|
VERSION 1
|
|
|
|
LANGUAGES C CXX
|
|
|
|
)
|
|
|
|
|
2022-11-18 23:33:30 -08:00
|
|
|
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()
|
2022-11-04 17:39:35 -07:00
|
|
|
endif()
|
|
|
|
|
2022-11-12 10:43:15 -08:00
|
|
|
find_package(PkgConfig)
|
2022-11-18 14:50:42 -08:00
|
|
|
pkg_check_modules(GMP REQUIRED IMPORTED_TARGET gmpxx)
|
2022-11-12 10:43:15 -08:00
|
|
|
|
2022-11-03 08:15:17 -07:00
|
|
|
add_subdirectory(lib)
|
2022-11-19 14:59:21 -08:00
|
|
|
add_subdirectory(dlx)
|
2022-11-24 12:10:08 -08:00
|
|
|
add_subdirectory(knothash)
|
2022-11-12 15:38:52 -08:00
|
|
|
add_subdirectory(zmod)
|
2022-11-06 21:12:30 -08:00
|
|
|
add_subdirectory(intcode)
|
2022-11-18 14:50:42 -08:00
|
|
|
add_subdirectory(2017)
|
2022-11-26 10:01:10 -08:00
|
|
|
add_subdirectory(2018)
|
2022-11-08 09:13:11 -08:00
|
|
|
add_subdirectory(2019)
|
2022-11-18 21:09:04 -08:00
|
|
|
add_subdirectory(2020)
|
2022-12-02 09:34:16 -08:00
|
|
|
add_subdirectory(2022)
|