algorithm_2024/CMakeLists.txt

40 lines
1.2 KiB
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)
2024-10-03 15:29:49 +00:00
set(CMAKE_BUILD_TYPE Debug)
2024-10-01 03:11:04 +00:00
endif()
2024-10-03 15:29:49 +00:00
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
2024-10-02 04:38:05 +00:00
project(algorithm_2024)
2024-10-01 03:00:53 +00:00
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)
2024-10-01 13:38:46 +00:00
add_executable(P2661 ${CMAKE_CURRENT_LIST_DIR}/P2661/main.cpp)
2024-10-02 03:21:23 +00:00
add_executable(P2661_video ${CMAKE_CURRENT_LIST_DIR}/P2661/video.cpp)
2024-10-01 13:38:46 +00:00
2024-10-02 06:29:36 +00:00
add_executable(P2615 ${CMAKE_CURRENT_LIST_DIR}/P2615/P2615.cpp)
add_executable(P7076 ${CMAKE_CURRENT_LIST_DIR}/P7076/P7076.cpp)
add_executable(P7075 ${CMAKE_CURRENT_LIST_DIR}/P7075/P7075.cpp)
2024-10-02 09:13:26 +00:00
add_executable(P1003 ${CMAKE_CURRENT_LIST_DIR}/P1003/P1003.cpp)
2024-10-03 02:44:17 +00:00
add_executable(P1311 ${CMAKE_CURRENT_LIST_DIR}/P1311/P1311.cpp)
2024-10-04 11:07:21 +00:00
add_executable(P4017 ${CMAKE_CURRENT_LIST_DIR}/P4017/P4017.cpp)
2024-10-04 12:04:22 +00:00
add_executable(P2782 ${CMAKE_CURRENT_LIST_DIR}/P2782/P2782.cpp)
add_executable(P1091 ${CMAKE_CURRENT_LIST_DIR}/P1091/P1091.cpp)
add_executable(P1020 ${CMAKE_CURRENT_LIST_DIR}/P1020/P1020.cpp)