21 lines
522 B
CMake
21 lines
522 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)
|
|
|
|
if("${CMAKE_BUILD_TYPE}" STREQUAL "Release")
|
|
message("Is in [Release] mode")
|
|
else()
|
|
message("Is in [NotRelease] mode")
|
|
endif()
|
|
|
|
|
|
project(alogrithm_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) |