This will make the `next` buildsystem no longer the `next`, but the `actual`. The idea is to simplify the build, removing scripts, to make the platform buildsystem generated by CMake more compatible with IDEs and make development more streamlined. It will also make cross compilation easier.
43 lines
978 B
CMake
43 lines
978 B
CMake
add_executable(
|
|
mbgl-cache
|
|
${PROJECT_SOURCE_DIR}/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
|
|
${PROJECT_SOURCE_DIR}/bin/offline.cpp
|
|
)
|
|
|
|
target_link_libraries(
|
|
mbgl-offline
|
|
PRIVATE Mapbox::Base::Extras::args mbgl-compiler-options mbgl-core
|
|
)
|
|
|
|
add_executable(
|
|
mbgl-render
|
|
${PROJECT_SOURCE_DIR}/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
|
|
# ${PROJECT_SOURCE_DIR} )
|
|
#
|
|
# add_test(NAME mbgl-render-tool-test COMMAND mbgl-render WORKING_DIRECTORY ${PROJECT_SOURCE_DIR} )
|