Forked from
Game Development / Game Library
383 commits behind the upstream repository.
-
Joseph Walton-Rivers authored
This was previously 7 attempts at fixing the build. However, none worked. The commits were all just altering the build deps.
Joseph Walton-Rivers authoredThis was previously 7 attempts at fixing the build. However, none worked. The commits were all just altering the build deps.
CMakeLists.txt 741 B
cmake_minimum_required(VERSION 3.10)
project(FGGL VERSION 0.1 LANGUAGES CXX)
set(FGGL_WAYLAND True)
# Set C++ version
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED True)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
# depdencies
if ( NOT glfw3_FOUND )
include(FetchContent)
set(GLFW_BUILD_EXAMPLES OFF)
set(GLFW_BUILD_TESTS OFF)
if ( FGGL_WAYLAND )
set(GLFW_USE_WAYLAND True)
endif ()
FetchContent_Declare(
glfw3
URL https://github.com/glfw/glfw/releases/download/3.3.4/glfw-3.3.4.zip
)
FetchContent_MakeAvailable( glfw3 )
endif ()
add_subdirectory(vendor/imgui/)
# engine
#set(CMAKE_CXX_CLANG_TIDY "clang-tidy;-checks=*")
add_subdirectory(fggl)
# extras
add_subdirectory(tests)
add_subdirectory(demo)