Files
MapLibreParticleLab/next/bin/CMakeLists.txt
Thiago Marcos P. Santos eb02f8e96d [build] Rewrite our CMake buildsystem
- Try as much as possible not to use explicit compiler flags,
  relying on CMake to do the job in a portable away.
- Build mbgl-core as a single static library and leverage lto as
  much as possible.
- Support a MinSizRel build for other platforms.
- Make GLFW and Node a client of mbgl-core public interface.
- Same for the offline tool and static render tool.
- Use only target settings (do not pollute the global scope)
- Confine core code in a single file.
- Confine platform code inside a single include (exception being Qt
  that needs AUTOMOC before adding the targets)
- Align the Android build with the Android toolchain file.
2019-09-17 12:28:55 +03:00

27 lines
596 B
CMake

add_executable(
mbgl-offline
${MBGL_ROOT}/bin/offline.cpp
)
target_link_libraries(
mbgl-offline
PRIVATE Mapbox::Base::Extras::args mbgl-core
)
add_executable(
mbgl-render
${MBGL_ROOT}/bin/render.cpp
)
target_link_libraries(
mbgl-render
PRIVATE Mapbox::Base::Extras::args mbgl-core
)
# 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} )