doompanning/CMakeLists.txt

28 lines
937 B
Text
Raw Normal View History

cmake_minimum_required(VERSION 3.14)
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})
set(CMAKE_VERBOSE_MAKEFILE ON CACHE BOOL "ON")
option(DOOMPANNING_INTERNAL_SDL "Build and use the included version of SDL2" OFF)
# 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 .
if (NOT DOOMPANNING_INTERNAL_SDL)
find_package(SDL2 2.0.17)
endif()
2023-03-11 12:14:56 +01:00
find_file(DOOM1_WAD doom1.wad HINTS /usr/share/games/doom /usr/local/share/doom)
if (DOOM1_WAD)
file(CREATE_LINK ${DOOM1_WAD} doom1.wad COPY_ON_ERROR SYMBOLIC)
else()
message(WARNING "-- Could not find 'doom1.wad' required to start dooms. Missing 'doom-wad-shareware' package?")
endif()
add_subdirectory(external)
add_subdirectory(src)