[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.
This commit is contained in:
Thiago Marcos P. Santos
2019-11-25 15:50:32 +02:00
parent 8d163c159f
commit cf160a24d0
3 changed files with 6 additions and 0 deletions

View File

@@ -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

View File

@@ -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)

View File

@@ -36,3 +36,5 @@ target_link_libraries(
)
set_property(TARGET mbgl-glfw PROPERTY FOLDER Executables)
install(TARGETS mbgl-glfw RUNTIME DESTINATION bin)