summaryrefslogtreecommitdiff
path: root/CMake/Android/CMakeList.txt.in
diff options
context:
space:
mode:
authorMatthias Melcher <git@matthiasm.com>2019-01-16 01:25:59 +0100
committerMatthias Melcher <git@matthiasm.com>2019-01-16 01:25:59 +0100
commit6de1c93e545e8100a4e907938dccd9b0564e12a2 (patch)
treef9f0160239757d24cbf9ca84f25f2fe36e88174f /CMake/Android/CMakeList.txt.in
parenta4fc8b06e1d3f39b413a19174cb661f198759793 (diff)
Android CMake: macro for multiple tests
Added a macro that creates the IDE files for a named test. This is just a rough layout and will only work for the simpelest of test targets.
Diffstat (limited to 'CMake/Android/CMakeList.txt.in')
-rw-r--r--CMake/Android/CMakeList.txt.in9
1 files changed, 6 insertions, 3 deletions
diff --git a/CMake/Android/CMakeList.txt.in b/CMake/Android/CMakeList.txt.in
index 99019b009..48f8b07f0 100644
--- a/CMake/Android/CMakeList.txt.in
+++ b/CMake/Android/CMakeList.txt.in
@@ -27,10 +27,12 @@ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
add_subdirectory(${FLTK_DIR}/ "${CMAKE_CURRENT_BINARY_DIR}/lib" EXCLUDE_FROM_ALL)
# now build app's shared lib
-add_library(android-hello SHARED
+add_library(
+ test_@ANDROID_APP_NAME@ SHARED
HelloAndroid.cxx)
-target_include_directories(android-hello PRIVATE
+target_include_directories(
+ test_@ANDROID_APP_NAME@ PRIVATE
${FLTK_DIR}/
${FLTK_IDE_DIR}/ )
@@ -40,7 +42,8 @@ set(CMAKE_SHARED_LINKER_FLAGS
"${CMAKE_SHARED_LINKER_FLAGS} -u ANativeActivity_onCreate")
# add lib dependencies
-target_link_libraries(android-hello
+target_link_libraries(
+ test_@ANDROID_APP_NAME@
fltk
android
log