Skip to content
Snippets Groups Projects
Select Git revision
  • 3d2098a4da4e179044d78500fd4c296a8eea6a2a
  • master default protected
  • refactoring
  • push_test
  • qpong_opengl
  • push_to_gitlab
  • feature_imgui_opengl
  • feature_google_test_integration
  • feature_config
  • merge_ci_and_googletest
  • feature_pixbuf
  • feature_heapBuffer
12 results

CMakeLists.txt

Blame
  • Armin's avatar
    Armin Co authored
    270a0488
    History
    CMakeLists.txt 679 B
    cmake_minimum_required(VERSION 3.10)
    project(QPong VERSION 0.0.1 LANGUAGES C CXX)
    
    set(CMAKE_CXX_STANDARD 20)
    set(CMAKE_BUILD_TYPE Release)
    
    list(APPEND basic_flags "-O3" "-Wextra" "-Wall" "-Wshadow" "-Wold-style-cast" "-pedantic" "-Wpedantic")
    
    option(LOG_DEBUG_INFO "Enable logging t console" OFF)
    if(LOG_DEBUG_INFO)
        add_compile_definitions(ENABLE_LOG_DEBUG_INFO)
    endif(LOG_DEBUG_INFO)
    
    # Check for PkgConfig
    find_package(PkgConfig REQUIRED)
    
    # Libraries the project depends on:
    add_subdirectory(libs/spdlog)
    
    # ImGuiSrc
    add_subdirectory(ImGuiSrc)
    
    # GUI/Window 
    add_subdirectory(GuiCore)
    
    # QPong Basics
    add_subdirectory(QPong)
    
    # QPong App sources
    add_subdirectory(App)