diff options
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 5847c70..fef9749 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,13 +1,17 @@ -cmake_minimum_required(VERSION 3.0.0) +cmake_minimum_required(VERSION 3.2.0) set(CMAKE_EXPORT_COMPILE_COMMANDS 1) +set(CMAKE_CXX_STANDARD 17) -set(CMAKE_C_STANDARD 11) +project(mazerator_project CXX) -project(mazerator_project C) - -file(GLOB SOURCES src/*.c) +file(GLOB SOURCES src/*.cpp) add_executable(mazerator ${SOURCES}) -SET(CMAKE_C_FLAGS ${CMAKE_C_FLAGS} -Wall) +find_package(fmt) +target_link_libraries(mazerator fmt::fmt) + +target_compile_features(mazerator PUBLIC cxx_std_17) + +target_compile_options(mazerator PRIVATE -Werror -Wall -Wextra) |