mirror of
https://github.com/kevinbentley/Descent3.git
synced 2025-01-22 19:55:23 +00:00
2b396d2d87
Fail cmake configuration if plog submodule is not initialized.
15 lines
406 B
CMake
15 lines
406 B
CMake
set(CMAKE_FOLDER "third_party")
|
|
|
|
add_subdirectory(libacm)
|
|
add_subdirectory(stb)
|
|
|
|
if(USE_EXTERNAL_PLOG)
|
|
find_package(plog REQUIRED)
|
|
else()
|
|
if (NOT EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/plog/CMakeLists.txt)
|
|
message(FATAL_ERROR "plog third-party directory could not be found. "
|
|
"Please run 'submodule update --init --recursive' in the source directory.")
|
|
endif()
|
|
add_subdirectory(plog)
|
|
endif()
|