diff options
author | HampusM <hampus@hampusmat.com> | 2022-01-09 21:47:23 +0100 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2022-01-09 21:47:23 +0100 |
commit | 8ceb79db1d0687bba005cef4a77bb889bf7ec3c3 (patch) | |
tree | b7c13359f652506d60c8556ea386ae8d50bfc5bc /CMakeLists.txt | |
parent | 097aa95c1f0cb159e7d9d0a3edf9284c421ee298 (diff) |
refactor: rewrite to c++
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) |