summaryrefslogtreecommitdiff
path: root/cmake/test.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/test.cmake
parent112bbc7ab289298094d6e6593437a71ec8029caa (diff)
downloadqtlocation-mapboxgl-upstream/cmake-file-lists.tar.gz
[build] use plain text files for file lists to simplify integration with other build systemsupstream/cmake-file-lists
Diffstat (limited to 'cmake/test.cmake')
-rw-r--r--cmake/test.cmake9
1 files changed, 3 insertions, 6 deletions
diff --git a/cmake/test.cmake b/cmake/test.cmake
index f4309896b8..755edad892 100644
--- a/cmake/test.cmake
+++ b/cmake/test.cmake
@@ -1,13 +1,10 @@
add_vendor_target(gtest STATIC)
+load_sources_list(MBGL_TEST_FILES cmake/test-files.txt)
if (MBGL_TEST_TARGET_TYPE STREQUAL "library")
- add_library(mbgl-test SHARED
- ${MBGL_TEST_FILES}
- )
+ add_library(mbgl-test SHARED ${MBGL_TEST_FILES})
else()
- add_executable(mbgl-test
- ${MBGL_TEST_FILES}
- )
+ add_executable(mbgl-test ${MBGL_TEST_FILES})
endif()