From 8ceb79db1d0687bba005cef4a77bb889bf7ec3c3 Mon Sep 17 00:00:00 2001 From: HampusM Date: Sun, 9 Jan 2022 21:47:23 +0100 Subject: refactor: rewrite to c++ --- CMakeLists.txt | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'CMakeLists.txt') 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) -- cgit v1.2.3-18-g5258