cmake_minimum_required(VERSION 3.10) set(CMAKE_EXPORT_COMPILE_COMMANDS ON) add_compile_options(-Wall) set(CMAKE_CXX_STANDARD 17) 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)