2023-02-22 20:29:22 +01:00
|
|
|
cmake_minimum_required(VERSION 3.14)
|
2023-02-03 23:33:37 +01:00
|
|
|
|
|
|
|
project(doompanning)
|
|
|
|
|
|
|
|
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
|
|
|
|
|
|
|
## Create binaries in the root of the build directory
|
|
|
|
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
|
2023-02-12 03:32:02 +01:00
|
|
|
set(CMAKE_VERBOSE_MAKEFILE ON CACHE BOOL "ON")
|
2023-02-03 23:33:37 +01:00
|
|
|
|
2023-02-22 20:29:22 +01:00
|
|
|
# The SDL renderer backend in the version of ImGui included in this repo
|
|
|
|
# requires at least SDL-2.0.17. This is enforced in
|
|
|
|
# external/imgui/backends/imgui_impl_sdlrenderer.cpp .
|
|
|
|
find_package(SDL2 2.0.17)
|
|
|
|
|
2023-02-03 23:33:37 +01:00
|
|
|
add_subdirectory(external)
|
|
|
|
add_subdirectory(src)
|