Add units library
This commit is contained in:
@@ -19,4 +19,6 @@ PUGIXML_REPO=https://git.madvoxel.net/Mirrors/pugixml.git
|
||||
YAMLCPP_REPO=https://git.madvoxel.net/Mirrors/yaml-cpp.git
|
||||
UTFCPP_REPO=https://git.madvoxel.net/Mirrors/utfcpp.git
|
||||
TRACY_REPO=https://git.madvoxel.net/Mirrors/tracy.git
|
||||
STB_REPO=https://git.madvoxel.net/Mirrors/stb.git
|
||||
STB_REPO=https://git.madvoxel.net/Mirrors/stb.git
|
||||
UNITS_REPO=https://git.madvoxel.net/Mirrors/units.git
|
||||
ANKERLUD_REPO=https://git.madvoxel.net/Mirrors/ankerl_unordered_dense.git
|
||||
15
3rdParty/units/CMakeLists.txt
vendored
Normal file
15
3rdParty/units/CMakeLists.txt
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
include(FetchContent)
|
||||
|
||||
if(NOT DEFINED UNITS_REPO)
|
||||
set(UNITS_REPO https://github.com/nholthaus/units.git)
|
||||
endif ()
|
||||
|
||||
FetchContent_Declare(
|
||||
units
|
||||
EXCLUDE_FROM_ALL
|
||||
GIT_REPOSITORY ${UNITS_REPO}
|
||||
GIT_TAG v2.3.3
|
||||
GIT_SHALLOW TRUE
|
||||
)
|
||||
FetchContent_MakeAvailable(units)
|
||||
|
||||
@@ -107,7 +107,7 @@ endif()
|
||||
|
||||
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 unordered_dense Boost::regex)
|
||||
target_link_libraries(openVulkanoCpp PRIVATE magic_enum yaml-cpp fmt spdlog glm pugixml stb eigen utf8cpp imgui_internal TracyClient stud-uuid ryml unordered_dense Boost::regex units)
|
||||
LinkCurl(openVulkanoCpp)
|
||||
|
||||
add_compile_definitions(LIBARCHIVE_STATIC)
|
||||
|
||||
Reference in New Issue
Block a user