2024-02-23 11:56:52 +08:00
|
|
|
# The bulk of the external dependencies are now automatically downlaoded and built using vcpkg.
|
2023-07-26 21:11:10 +08:00
|
|
|
|
2024-02-23 11:56:52 +08:00
|
|
|
if (WIN32)
|
|
|
|
|
set(EXTERN_LIB_SUFFIX "lib")
|
|
|
|
|
set(EXTERN_LIB_PREFIX "")
|
|
|
|
|
else()
|
|
|
|
|
set(EXTERN_LIB_SUFFIX "a")
|
|
|
|
|
set(EXTERN_LIB_PREFIX "lib")
|
2023-08-04 16:26:18 +08:00
|
|
|
endif()
|
2021-02-28 19:51:57 +08:00
|
|
|
|
2024-02-23 11:56:52 +08:00
|
|
|
add_library(include_helpers INTERFACE)
|
|
|
|
|
target_include_directories(include_helpers INTERFACE "${CMAKE_CURRENT_LIST_DIR}/include")
|
2021-03-03 03:22:02 +08:00
|
|
|
|
2021-08-17 14:14:32 +08:00
|
|
|
add_library(earcut INTERFACE)
|
2024-02-23 11:56:52 +08:00
|
|
|
find_path(EARCUT_HPP_INCLUDE_DIRS "mapbox/earcut.hpp")
|
|
|
|
|
target_include_directories(earcut INTERFACE "${EARCUT_HPP_INCLUDE_DIRS}")
|
2024-02-23 06:08:15 +08:00
|
|
|
|
2024-02-23 11:56:52 +08:00
|
|
|
# picosha2 also doesn't contain a CMake config, so we construct a fake header-only import library here
|
|
|
|
|
add_library(picosha2::picosha2 IMPORTED INTERFACE GLOBAL)
|
|
|
|
|
set_target_properties(picosha2::picosha2 PROPERTIES
|
2024-08-24 00:31:11 +08:00
|
|
|
INTERFACE_INCLUDE_DIRECTORIES "${PACKAGE_BUILD_DIR}/include"
|
2025-08-20 03:20:16 +08:00
|
|
|
)
|