A WIP 3D game engine in C++ using OpenGL
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
cmake_minimum_required(VERSION 3.18)
|
|
|
|
|
|
|
|
# set the project name and version
|
|
|
|
project(GLTEST VERSION 0.0.1)
|
|
|
|
|
|
|
|
# Let's ensure -std=c++xx instead of -std=g++xx
|
|
|
|
set(CMAKE_CXX_EXTENSIONS OFF)
|
|
|
|
set(CMAKE_BUILD_TYPE "Debug")
|
|
|
|
|
|
|
|
message(STATUS "Build type: ${CMAKE_BUILD_TYPE}")
|
|
|
|
|
|
|
|
set (CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -fno-omit-frame-pointer -fsanitize=address")
|
|
|
|
set (CMAKE_LINKER_FLAGS_DEBUG "${CMAKE_LINKER_FLAGS_DEBUG} -fno-omit-frame-pointer -fsanitize=address")
|
|
|
|
set (CMAKE_BINARY_DIR .)
|
|
|
|
|
|
|
|
include_directories(lib/nlohmann_json/include)
|
|
|
|
|
|
|
|
|
|
|
|
add_subdirectory(lib/nlohmann_json)
|
|
|
|
add_subdirectory(lib/fmt)
|
|
|
|
add_subdirectory(src)
|
|
|
|
|
|
|
|
# specify the C++ standard
|
|
|
|
set(CMAKE_CXX_STANDARD 17)
|
|
|
|
set(CMAKE_CXX_STANDARD_REQUIRED True)
|
|
|
|
|
|
|
|
|