summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2017-03-22 14:20:35 +0100
committerKonstantin Käfer <mail@kkaefer.com>2017-03-28 13:53:19 +0200
commit3f0f4575e77ef289ca209323c0000cf743ab9db2 (patch)
tree10b022821676a89c7a3b8a8f12b08f5d44d29b2c /cmake
parentf436913550562d6ec4409b6e2cde17208875e8ab (diff)
downloadqtlocation-mapboxgl-3f0f4575e77ef289ca209323c0000cf743ab9db2.tar.gz
[android] Move SDK files to separate target
Diffstat (limited to 'cmake')
-rw-r--r--cmake/test.cmake12
1 files changed, 9 insertions, 3 deletions
diff --git a/cmake/test.cmake b/cmake/test.cmake
index 1f3bd42c63..16b7d630e2 100644
--- a/cmake/test.cmake
+++ b/cmake/test.cmake
@@ -1,6 +1,12 @@
-add_executable(mbgl-test
- ${MBGL_TEST_FILES}
-)
+if (MBGL_TEST_TARGET_TYPE STREQUAL "library")
+ add_library(mbgl-test SHARED
+ ${MBGL_TEST_FILES}
+ )
+else()
+ add_executable(mbgl-test
+ ${MBGL_TEST_FILES}
+ )
+endif()
target_compile_options(mbgl-test
PRIVATE -fvisibility-inlines-hidden