From 2dfc0275b25727d623e290b2401e9107e535c25b Mon Sep 17 00:00:00 2001 From: Armin Co <armin.co@hs-bochum.de> Date: Sun, 26 Apr 2020 17:50:47 +0200 Subject: [PATCH] Changed to Release mode. The programm will not run properly in debug mode, window will not show. --- CMakeLists.txt | 8 ++++---- gtk_qpong_app/CMakeLists.txt | 2 -- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8da6cce..d17699f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,15 +1,15 @@ # CMake file for the QPong project. project(QPong) -cmake_minimum_required(VERSION 3.2) +cmake_minimum_required(VERSION 3.10) # Options option(create_test "Build all tests." OFF) -option(release_type "Set the type of the releas (Debug/Release)." Release) - # Use modern C++! set(CMAKE_CXX_STANDARD 17) +# @todo It will not run in debug mode only in release mode. +set(CMAKE_BUILD_TYPE Release) # PkgConfig @@ -31,7 +31,7 @@ add_subdirectory(qpong_core) include_directories(qpong_core) # Dear ImGui based application -# add_subdirectory(imgui_app) +add_subdirectory(imgui_app) # Add dir with gtk qpong app add_subdirectory(gtk_qpong_app) diff --git a/gtk_qpong_app/CMakeLists.txt b/gtk_qpong_app/CMakeLists.txt index 3233886..9b1e9a8 100644 --- a/gtk_qpong_app/CMakeLists.txt +++ b/gtk_qpong_app/CMakeLists.txt @@ -6,7 +6,6 @@ link_directories(${GTKMM_LIBRARY_DIRS}) # get all GTKMM dependencies and configuration include_directories(${GTKMM_INCLUDE_DIRS}) -# include_directories(../qpong_core) # create the application add_executable( qpong.app @@ -18,7 +17,6 @@ add_executable( qpong.app find_package(Threads) - # link all necessary libs to the target target_link_libraries( qpong.app qpong_core -- GitLab