summaryrefslogtreecommitdiff
path: root/next
diff options
context:
space:
mode:
authorThiago Marcos P. Santos <tmpsantos@gmail.com>2019-11-25 15:50:32 +0200
committerThiago Marcos P. Santos <tmpsantos@gmail.com>2019-11-27 18:32:58 +0200
commitcf160a24d0380e8c8125d79cfb15991c19f50d98 (patch)
tree912436d8225000d2e115b93669c39b228ea7d368 /next
parent8d163c159f7cc0699be488457cf14c67bb07f2c7 (diff)
downloadqtlocation-mapboxgl-cf160a24d0380e8c8125d79cfb15991c19f50d98.tar.gz
[build] Install some of our targets
This will make it easier to measure the binary size because we can strip the binaries from symbols in a portable way.
Diffstat (limited to 'next')
-rw-r--r--next/bin/CMakeLists.txt2
-rw-r--r--next/platform/android/android.cmake2
-rw-r--r--next/platform/glfw/CMakeLists.txt2
3 files changed, 6 insertions, 0 deletions
diff --git a/next/bin/CMakeLists.txt b/next/bin/CMakeLists.txt
index e4222774bb..b002783770 100644
--- a/next/bin/CMakeLists.txt
+++ b/next/bin/CMakeLists.txt
@@ -18,6 +18,8 @@ target_link_libraries(
PRIVATE Mapbox::Base::Extras::args mbgl-core
)
+install(TARGETS mbgl-offline mbgl-render RUNTIME DESTINATION bin)
+
# FIXME: CI must have a valid token
#
# add_test(NAME mbgl-offline-tool-test COMMAND mbgl-offline -s mapbox://styles/mapbox/satellite-v9 --maxZoom=0 WORKING_DIRECTORY
diff --git a/next/platform/android/android.cmake b/next/platform/android/android.cmake
index e086f8b75b..b0c9c712dc 100644
--- a/next/platform/android/android.cmake
+++ b/next/platform/android/android.cmake
@@ -393,3 +393,5 @@ target_compile_options(mbgl-core PRIVATE $<$<CONFIG:Release>:-Qunused-arguments
target_compile_options(mbgl-render-test-runner PRIVATE $<$<CONFIG:Release>:-Qunused-arguments -flto>)
target_compile_options(mbgl-vendor-icu PRIVATE $<$<CONFIG:Release>:-Qunused-arguments -flto>)
target_compile_options(mbgl-vendor-sqlite PRIVATE $<$<CONFIG:Release>:-Qunused-arguments -flto>)
+
+install(TARGETS mapbox-gl LIBRARY DESTINATION lib)
diff --git a/next/platform/glfw/CMakeLists.txt b/next/platform/glfw/CMakeLists.txt
index d4f1b9d545..e4c0920a44 100644
--- a/next/platform/glfw/CMakeLists.txt
+++ b/next/platform/glfw/CMakeLists.txt
@@ -36,3 +36,5 @@ target_link_libraries(
)
set_property(TARGET mbgl-glfw PROPERTY FOLDER Executables)
+
+install(TARGETS mbgl-glfw RUNTIME DESTINATION bin)