Skip to content
Snippets Groups Projects
Select Git revision
  • a8e88ae86f1d0df6d4408fe5b185d5a17a1fb8a2
  • 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 Co's avatar
    Armin Co authored
    GTK is broken at the moment.
    a8e88ae8
    History
    CMakeLists.txt 1009 B
    # CMake file for the QPong project.
    project(QPong)
    cmake_minimum_required(VERSION 3.2)
    
    
    # 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)
    
    
    # PkgConfig
    find_package(PkgConfig REQUIRED)
    
    # On macOS some things are different ^^
    if(APPLE)
        link_directories(/usr/local/lib)
        include_directories(/usr/local/include)
    
        # This may be necessary on some systems.
        message("ATTENTION: You probably have to export the PKG_CONFIG_PATH.")
        message("For example: $ export PKG_CONFIG_PATH=\"/usr/local/lib:/usr/local/opt/zlib/lib/pkgconfig\"")
    endif()
    
    
    # Add qpong lib for core qpong functionality
    add_subdirectory(qpong_core)
    
    # Dear ImGui based application
    add_subdirectory(imgui_app)
    
    # Add dir with gtk qpong app
    add_subdirectory(gtk_qpong_app)
    
    
    # Add some unit tests
    # not many yet ^^
    if (create_test)
        add_subdirectory(libs/googletest)
        add_subdirectory(tests)
    endif()