summaryrefslogtreecommitdiff
path: root/vendor/earcut.hpp.cmake
blob: 69559d110901cd42563209e08960644601f56659 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
if(TARGET mbgl-vendor-earcut.hpp)
    return()
endif()

add_library(
    mbgl-vendor-earcut.hpp INTERFACE
)

target_include_directories(
    mbgl-vendor-earcut.hpp SYSTEM
    INTERFACE ${CMAKE_CURRENT_LIST_DIR}/earcut.hpp/include
)

set_target_properties(
    mbgl-vendor-earcut.hpp
    PROPERTIES
        INTERFACE_MAPBOX_NAME "earcut.hpp"
        INTERFACE_MAPBOX_URL "https://github.com/mapbox/earcut.hpp"
        INTERFACE_MAPBOX_AUTHOR "Mapbox"
        INTERFACE_MAPBOX_LICENSE ${CMAKE_CURRENT_LIST_DIR}/earcut.hpp/LICENSE
)