Select Git revision
CMakeLists.txt
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()