aocpp/CMakeLists.txt

24 lines
516 B
CMake
Raw Normal View History

2022-11-03 08:15:17 -07:00
cmake_minimum_required(VERSION 3.13)
set(CMAKE_C_STANDARD 11)
set(CMAKE_CXX_STANDARD 20)
project(aocpp19
VERSION 1
LANGUAGES C CXX
)
2022-11-04 17:39:35 -07:00
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-12 10:43:15 -08:00
find_package(PkgConfig)
pkg_check_modules(GMP REQUIRED IMPORTED_TARGET gmp)
2022-11-03 08:15:17 -07:00
add_subdirectory(lib)
2022-11-12 15:38:52 -08:00
add_subdirectory(zmod)
add_subdirectory(intcode)
2022-11-08 09:13:11 -08:00
add_subdirectory(2019)