aocpp/CMakeLists.txt
2022-11-12 15:38:52 -08:00

24 lines
516 B
CMake

cmake_minimum_required(VERSION 3.13)
set(CMAKE_C_STANDARD 11)
set(CMAKE_CXX_STANDARD 20)
project(aocpp19
VERSION 1
LANGUAGES C CXX
)
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()
find_package(PkgConfig)
pkg_check_modules(GMP REQUIRED IMPORTED_TARGET gmp)
add_subdirectory(lib)
add_subdirectory(zmod)
add_subdirectory(intcode)
add_subdirectory(2019)