Add ankerl unordered_dense map/set implementations

This commit is contained in:
Georg Hagen
2024-07-01 22:53:44 +02:00
parent 9452d061b2
commit f797d6970b
3 changed files with 16 additions and 1 deletions

View File

@@ -5,6 +5,7 @@ if (NOT ANDROID AND NOT IOS)
add_subdirectory(glfw) add_subdirectory(glfw)
add_subdirectory(ftxui) add_subdirectory(ftxui)
endif() endif()
add_subdirectory(ankerl-unordered_dense)
add_subdirectory(assimp) add_subdirectory(assimp)
add_subdirectory(fmt) add_subdirectory(fmt)
add_subdirectory(spdlog) add_subdirectory(spdlog)

View File

@@ -0,0 +1,14 @@
include(FetchContent)
if(NOT DEFINED ANKERLUD_REPO)
set(ANKERLUD_REPO https://github.com/martinus/unordered_dense.git)
endif ()
FetchContent_Declare(
unordered_dense
EXCLUDE_FROM_ALL
GIT_REPOSITORY ${ANKERLUD_REPO}
GIT_TAG v4.4.0
GIT_SHALLOW TRUE
)
FetchContent_MakeAvailable(unordered_dense)

View File

@@ -94,7 +94,7 @@ endif()
list(APPEND CMAKE_PREFIX_PATH ${CMAKE_BINARY_DIR}/deps/INSTALL) list(APPEND CMAKE_PREFIX_PATH ${CMAKE_BINARY_DIR}/deps/INSTALL)
target_link_libraries(openVulkanoCpp PRIVATE magic_enum yaml-cpp fmt spdlog glm pugixml stb eigen utf8cpp imgui_internal TracyClient stud-uuid ryml) target_link_libraries(openVulkanoCpp PRIVATE magic_enum yaml-cpp fmt spdlog glm pugixml stb eigen utf8cpp imgui_internal TracyClient stud-uuid ryml unordered_dense)
LinkCurl(openVulkanoCpp) LinkCurl(openVulkanoCpp)
add_compile_definitions(LIBARCHIVE_STATIC) add_compile_definitions(LIBARCHIVE_STATIC)