look for doom1.wad and create a link in the build directory if found

This commit is contained in:
oxmox 2023-02-22 20:30:12 +01:00
parent 348bcc9997
commit 4efcc3cb95

View file

@ -13,5 +13,12 @@ set(CMAKE_VERBOSE_MAKEFILE ON CACHE BOOL "ON")
# external/imgui/backends/imgui_impl_sdlrenderer.cpp .
find_package(SDL2 2.0.17)
find_file(DOOM1_WAD doom1.wad HINTS /usr/share/games/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)