cesium-native/extern/CMakeLists.txt

23 lines
813 B
CMake
Raw Permalink Normal View History

2024-02-23 11:56:52 +08:00
# The bulk of the external dependencies are now automatically downlaoded and built using vcpkg.
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")
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-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 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
INTERFACE_INCLUDE_DIRECTORIES "${PACKAGE_BUILD_DIR}/include"
)