summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorThiago Marcos P. Santos <tmpsantos@gmail.com>2020-02-07 16:38:14 +0200
committerThiago Marcos P. Santos <tmpsantos@gmail.com>2020-02-07 20:12:44 +0200
commitf7fef70e9ddb9f52b071703d3ff0683b921606ac (patch)
treebbb1c1bf6f9d9a871c8d45e69286f9a0c44224ca /bin
parent489adb8d8713928fbbd1f511640417b1dd2aaa8a (diff)
downloadqtlocation-mapboxgl-f7fef70e9ddb9f52b071703d3ff0683b921606ac.tar.gz
[build] Move the `next` buildsystem to the root
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.
Diffstat (limited to 'bin')
-rw-r--r--bin/CMakeLists.txt42
1 files changed, 42 insertions, 0 deletions
diff --git a/bin/CMakeLists.txt b/bin/CMakeLists.txt
new file mode 100644
index 0000000000..8f265ecb91
--- /dev/null
+++ b/bin/CMakeLists.txt
@@ -0,0 +1,42 @@
+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} )