summaryrefslogtreecommitdiff
path: root/CMake/macros.cmake
diff options
context:
space:
mode:
authorMatthias Melcher <git@matthiasm.com>2019-01-17 21:29:24 +0100
committerMatthias Melcher <git@matthiasm.com>2019-01-17 21:29:24 +0100
commit2f0e45e7a7110761080e2540c95a9fc94f162f81 (patch)
tree570eb0784d32ca3f91a5c02aeb15603650999ee0 /CMake/macros.cmake
parent111985665d8ae08437d3c9d61c7975ad69c6d099 (diff)
Android CMake: icons, docs, more apps
Diffstat (limited to 'CMake/macros.cmake')
-rw-r--r--CMake/macros.cmake11
1 files changed, 11 insertions, 0 deletions
diff --git a/CMake/macros.cmake b/CMake/macros.cmake
index afb855687..43da7c7df 100644
--- a/CMake/macros.cmake
+++ b/CMake/macros.cmake
@@ -188,6 +188,17 @@ macro(CREATE_EXAMPLE NAME SOURCES LIBRARIES)
target_link_libraries(${tname} ${LIBRARIES})
+ # CREATE_EXAMPLE can have an optional fourth argument with a list of options
+ # - the option ANDROID_OK is set if CREATE_EXAMPLE creates code for Androids
+ # builds in addition to the native build
+ if (${ARGC} GREATER 3)
+ foreach(OPTION ${ARGV3})
+ if (${OPTION} STREQUAL ANDROID_OK AND OPTION_CREATE_ANDROID_STUDIO_IDE)
+ CREATE_ANDROID_IDE_FOR_TEST(${NAME} ${SOURCES} ${LIBRARIES})
+ endif()
+ endforeach()
+ endif()
+
endmacro(CREATE_EXAMPLE NAME SOURCES LIBRARIES)
#######################################################################