12 lines
278 B
CMake
12 lines
278 B
CMake
|
cmake_minimum_required(VERSION 3.16)
|
||
|
|
||
|
set(CMAKE_CXX_STANDARD 11)
|
||
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall")
|
||
|
|
||
|
project(josephus)
|
||
|
|
||
|
include_directories(${PROJECT_SOURCE_DIR}/include)
|
||
|
|
||
|
aux_source_directory(${PROJECT_SOURCE_DIR}/src SRC)
|
||
|
|
||
|
add_executable(josephus main.cpp ${SRC})
|