Initial commit
This commit is contained in:
66
CMake/FindDependencies.cmake
Normal file
66
CMake/FindDependencies.cmake
Normal file
@@ -0,0 +1,66 @@
|
||||
find_package(Python3 COMPONENTS Interpreter Development)
|
||||
|
||||
if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
|
||||
set(THREADS_PREFER_PTHREAD_FLAG ON)
|
||||
find_package(Threads REQUIRED)
|
||||
endif()
|
||||
|
||||
find_package(EASTL REQUIRED)
|
||||
find_package(unordered_dense REQUIRED)
|
||||
find_package(mimalloc REQUIRED)
|
||||
find_package(magic_enum REQUIRED)
|
||||
find_package(stduuid REQUIRED)
|
||||
find_package(SQLite3 REQUIRED)
|
||||
find_package(CLI11 REQUIRED)
|
||||
find_package(xxHash REQUIRED)
|
||||
find_package(effolkronium_random REQUIRED)
|
||||
find_package(zeus_expected REQUIRED)
|
||||
find_package(flatbuffers CONFIG REQUIRED)
|
||||
|
||||
if(TRACY)
|
||||
find_package(Tracy REQUIRED)
|
||||
endif()
|
||||
|
||||
if(${is_multi_config})
|
||||
find_package(quill REQUIRED)
|
||||
find_package(cpptrace REQUIRED)
|
||||
elseif(${CMAKE_BUILD_TYPE} STREQUAL "Debug" OR ${CMAKE_BUILD_TYPE} STREQUAL "RelWithDebInfo")
|
||||
find_package(quill REQUIRED)
|
||||
find_package(cpptrace REQUIRED)
|
||||
endif()
|
||||
|
||||
|
||||
find_package(glm REQUIRED)
|
||||
find_package(lodepng REQUIRED)
|
||||
find_package(imgui REQUIRED)
|
||||
|
||||
if(VULKAN)
|
||||
find_package(VulkanHeaders REQUIRED)
|
||||
if(${is_multi_config})
|
||||
find_package(vulkan-validationlayers REQUIRED)
|
||||
elseif(${CMAKE_BUILD_TYPE} STREQUAL "Debug" OR ${CMAKE_BUILD_TYPE} STREQUAL "RelWithDebInfo")
|
||||
find_package(vulkan-validationlayers REQUIRED)
|
||||
endif()
|
||||
find_package(vulkan-memory-allocator REQUIRED)
|
||||
endif()
|
||||
|
||||
if(BUILD_BENCHMARKS OR BUILD_TESTS OR SAMPLE_APP)
|
||||
find_package(glfw3 REQUIRED)
|
||||
endif()
|
||||
|
||||
if(BUILD_TESTS)
|
||||
find_package(GTest REQUIRED)
|
||||
find_package(pixelmatch-cpp17 REQUIRED)
|
||||
endif()
|
||||
|
||||
if(BUILD_TOOLS)
|
||||
find_package(spirv-cross REQUIRED)
|
||||
find_package(shaderc REQUIRED)
|
||||
find_package(assimp REQUIRED)
|
||||
find_package(meshoptimizer REQUIRED)
|
||||
find_package(libsquish REQUIRED)
|
||||
endif()
|
||||
|
||||
if(BUILD_BENCHMARKS)
|
||||
find_package(benchmark REQUIRED)
|
||||
endif()
|
||||
Reference in New Issue
Block a user