summaryrefslogtreecommitdiff
path: root/cmake/filesource.cmake
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2018-08-20 13:32:44 +0200
committerKonstantin Käfer <mail@kkaefer.com>2018-08-20 13:32:44 +0200
commitc9ab6ce58d95edab20b5c8e4e8a33b4f82335787 (patch)
tree019fbea3b3c1580fe2593aa50ac18f769134aec5 /cmake/filesource.cmake
parent112bbc7ab289298094d6e6593437a71ec8029caa (diff)
downloadqtlocation-mapboxgl-c9ab6ce58d95edab20b5c8e4e8a33b4f82335787.tar.gz
[build] use plain text files for file lists to simplify integration with other build systemsupstream/cmake-file-lists
Diffstat (limited to 'cmake/filesource.cmake')
-rw-r--r--cmake/filesource.cmake28
1 files changed, 2 insertions, 26 deletions
diff --git a/cmake/filesource.cmake b/cmake/filesource.cmake
index 9b7a4a1138..6486a4af32 100644
--- a/cmake/filesource.cmake
+++ b/cmake/filesource.cmake
@@ -1,31 +1,7 @@
add_vendor_target(expected INTERFACE)
-add_library(mbgl-filesource STATIC
- # File source
- include/mbgl/storage/default_file_source.hpp
- platform/default/default_file_source.cpp
- platform/default/mbgl/storage/file_source_request.hpp
- platform/default/file_source_request.cpp
- include/mbgl/storage/online_file_source.hpp
- platform/default/online_file_source.cpp
- src/mbgl/storage/http_file_source.hpp
- src/mbgl/storage/asset_file_source.hpp
- platform/default/asset_file_source.cpp
- src/mbgl/storage/local_file_source.hpp
- platform/default/local_file_source.cpp
-
- # Offline
- include/mbgl/storage/offline.hpp
- platform/default/mbgl/storage/offline.cpp
- platform/default/mbgl/storage/offline_database.hpp
- platform/default/mbgl/storage/offline_database.cpp
- platform/default/mbgl/storage/offline_download.hpp
- platform/default/mbgl/storage/offline_download.cpp
- platform/default/mbgl/storage/offline_schema.hpp
-
- # Database
- platform/default/sqlite3.hpp
-)
+load_sources_list(MBGL_FILESOURCE_FILES cmake/filesource-files.txt)
+add_library(mbgl-filesource STATIC ${MBGL_FILESOURCE_FILES})
target_add_mason_package(mbgl-filesource PUBLIC geometry)
target_add_mason_package(mbgl-filesource PUBLIC variant)