algorithm_2024/CMakeLists.txt

21 lines
522 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 03:11:04 +00:00
if("${CMAKE_BUILD_TYPE}" STREQUAL "Release")
2024-10-01 03:11:53 +00:00
message("Is in [Release] mode")
2024-10-01 03:11:04 +00:00
else()
2024-10-01 03:11:53 +00:00
message("Is in [NotRelease] mode")
2024-10-01 03:11:04 +00:00
endif()
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)