Files
MapLibreParticleLab/next/bin/CMakeLists.txt
Thiago Marcos P. Santos f14985f783 [tools] Added cache tool
A tool for adding resources to a cache database, important for
adding fixtures to our render test cache database.
2020-01-08 13:07:12 +02:00

43 lines
933 B
CMake

add_executable(
mbgl-cache
${MBGL_ROOT}/bin/cache.cpp
)
target_link_libraries(
mbgl-cache
PRIVATE
Mapbox::Base::Extras::args
Mapbox::Base::io
mbgl-compiler-options
mbgl-core
)
add_executable(
mbgl-offline
${MBGL_ROOT}/bin/offline.cpp
)
target_link_libraries(
mbgl-offline
PRIVATE Mapbox::Base::Extras::args mbgl-compiler-options mbgl-core
)
add_executable(
mbgl-render
${MBGL_ROOT}/bin/render.cpp
)
target_link_libraries(
mbgl-render
PRIVATE Mapbox::Base::Extras::args mbgl-compiler-options 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
# ${MBGL_ROOT} )
#
# add_test(NAME mbgl-render-tool-test COMMAND mbgl-render WORKING_DIRECTORY ${MBGL_ROOT} )