algorithm_2024/CMakeLists.txt
2024-10-02 12:38:05 +08:00

24 lines
666 B
CMake

cmake_minimum_required(VERSION 3.10)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
add_compile_options(-Wall)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Release)
endif()
message("Build type is [${CMAKE_BUILD_TYPE}]")
project(algorithm_2024)
add_executable(P1031 ${CMAKE_CURRENT_LIST_DIR}/P1031/main.cpp)
add_executable(P1031_pro ${CMAKE_CURRENT_LIST_DIR}/P1031/pro.cpp)
add_executable(P2661 ${CMAKE_CURRENT_LIST_DIR}/P2661/main.cpp)
add_executable(P2661_video ${CMAKE_CURRENT_LIST_DIR}/P2661/video.cpp)
add_executable(P2615 ${CMAKE_CURRENT_LIST_DIR}/P2615/P2615.cpp)