From 242b719f0cbb24b485e439edd0da5aedee87f444 Mon Sep 17 00:00:00 2001 From: "Thiago Marcos P. Santos" Date: Mon, 24 Feb 2020 15:49:11 +0200 Subject: [build] Generate the LICENSE.md for mbgl-core Add a script that for everything we link against mbgl-core, it will check the license and generate a file all the dependencies listed with the respective authors, project urls and license. --- CMakeLists.txt | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 05ba29a96f..ca0fbefa74 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -933,11 +933,7 @@ target_include_directories( PUBLIC ${PROJECT_SOURCE_DIR}/include ) -if(NOT TARGET mapbox-base) - add_subdirectory(${PROJECT_SOURCE_DIR}/vendor/mapbox-base/mapbox) - add_subdirectory(${PROJECT_SOURCE_DIR}/vendor/mapbox-base/extras) -endif() - +include(${PROJECT_SOURCE_DIR}/vendor/mapbox-base.cmake) include(${PROJECT_SOURCE_DIR}/vendor/boost.cmake) include(${PROJECT_SOURCE_DIR}/vendor/earcut.hpp.cmake) include(${PROJECT_SOURCE_DIR}/vendor/eternal.cmake) @@ -975,6 +971,17 @@ target_link_libraries( Mapbox::Base::weak ) +set_target_properties( + mbgl-core + PROPERTIES + INTERFACE_MAPBOX_NAME "Mapbox GL Native" + INTERFACE_MAPBOX_URL "https://github.com/mapbox/mapbox-gl-native" + INTERFACE_MAPBOX_AUTHOR "Mapbox" + INTERFACE_MAPBOX_LICENSE ${PROJECT_SOURCE_DIR}/LICENSE.md +) + +include(${PROJECT_SOURCE_DIR}/scripts/license.cmake) + set_property(TARGET mbgl-core PROPERTY FOLDER Core) add_library( -- cgit v1.2.1