From 80a0f115afb25c3cb3fc0249451875466e5dc9a2 Mon Sep 17 00:00:00 2001 From: Geoffray Levasseur Date: Sat, 7 Nov 2026 12:23:35 +0100 Subject: [PATCH] add debug option --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5b4c6f1..503f558 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -30,6 +30,11 @@ cmake_minimum_required(VERSION 3.16) project(c-evo-evo VERSION 0.1 LANGUAGES CXX) +if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES) + set(CMAKE_BUILD_TYPE Debug CACHE STRING "Build type (Debug, Release, RelWithDebInfo, MinSizeRel)" FORCE) +endif() +set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS "Debug" "Release" "RelWithDebInfo" "MinSizeRel") + option(CEVO_WITH_APP "Build the game application (widget/media + c-evo-evo executable)" ON) option(CEVO_WITH_AI "Build and install the bundled stdai AI plugin (turn off to rely on a third-party AI module instead)" ON) if(NOT CEVO_WITH_APP AND NOT CEVO_WITH_AI)