diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2017-03-22 14:20:35 +0100 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2017-03-28 13:53:19 +0200 |
commit | 3f0f4575e77ef289ca209323c0000cf743ab9db2 (patch) | |
tree | 10b022821676a89c7a3b8a8f12b08f5d44d29b2c /cmake | |
parent | f436913550562d6ec4409b6e2cde17208875e8ab (diff) | |
download | qtlocation-mapboxgl-3f0f4575e77ef289ca209323c0000cf743ab9db2.tar.gz |
[android] Move SDK files to separate target
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/test.cmake | 12 |
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 |