<gh_stars>1-10
cmake_minimum_required(VERSION 3.15)
project(contest)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_FLAGS, "-std=c++17 -Wall -pedantic -Wconversion \
  -Wshadow -Wfloat-equal")
if (DEBUG_EXEC) # set in 'Debug'
  set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O0 -g -fsanitize=address -fsanitize=undefined")
else () # in 'Run' and 'OJ'
  set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O2")
endif()
if (LOCAL_EXEC) # set in 'Debug' and 'Run'
  set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DLOCAL_EXEC")
endif()
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ..) # folder with source
set(srcs a b c d e f g h i j k l m) # adjust names as necessary
foreach(F IN LISTS srcs)
    add_executable(${F}.out ${F}.cpp)
endforeach()

cmake_minimum_required(VERSION 3.15)
project(contest)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_FLAGS, "-std=c++17 -Wall -pedantic -Wconversion \
  -Wshadow -Wfloat-equal")
if (DEBUG_EXEC) # set in 'Debug'
  set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O0 -g -fsanitize=address -fsanitize=undefined")
else () # in 'Run' and 'OJ'
  set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O2")
endif()
if (LOCAL_EXEC) # set in 'Debug' and 'Run'
  set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DLOCAL_EXEC")
endif()
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ..) # folder with source
set(srcs a b c d e f g h i j k l m) # adjust names as necessary
foreach(F IN LISTS srcs)
    add_executable(${F}.out ${F}.cpp)
endforeach()
# set in 'Debug' # in 'Run' and 'OJ' # set in 'Debug' and 'Run' # folder with source # adjust names as necessary