algorithm_2024/CMakeLists.txt

21 lines
531 B
CMake
Raw Normal View History

2024-10-01 03:00:53 +00:00
cmake_minimum_required(VERSION 3.10)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
2024-10-01 03:11:04 +00:00
add_compile_options(-Wall)
2024-10-01 09:35:03 +00:00
set(CMAKE_CXX_STANDARD 20)
2024-10-01 03:14:42 +00:00
set(CMAKE_CXX_STANDARD_REQUIRED ON)
2024-10-01 13:08:27 +00:00
set(CMAKE_CXX_EXTENSIONS OFF)
2024-10-01 03:14:42 +00:00
2024-10-01 13:08:27 +00:00
if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Release)
2024-10-01 03:11:04 +00:00
endif()
2024-10-01 13:08:27 +00:00
message("Build type is [${CMAKE_BUILD_TYPE}]")
2024-10-01 03:11:04 +00:00
2024-10-01 03:00:53 +00:00
project(alogrithm_2024)
2024-10-01 03:52:01 +00:00
add_executable(P1031 ${CMAKE_CURRENT_LIST_DIR}/P1031/main.cpp)
2024-10-01 09:35:03 +00:00
add_executable(P1031_pro ${CMAKE_CURRENT_LIST_DIR}/P1031/pro.cpp)
add_executable(P2661 ${CMAKE_CURRENT_LIST_DIR}/P2661/main.cpp)