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