From 6de1c93e545e8100a4e907938dccd9b0564e12a2 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Wed, 16 Jan 2019 01:25:59 +0100 Subject: 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. --- test/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test') diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 0ffe3f881..64bed5ca3 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -42,6 +42,8 @@ include_directories( if(NOT ANDROID) CREATE_EXAMPLE(adjuster adjuster.cxx fltk) CREATE_EXAMPLE(arc arc.cxx fltk) +CREATE_ANDROID_IDE_FOR_TEST(arc arc.cxx fltk) +CREATE_ANDROID_IDE_FOR_TEST(hello hello.cxx fltk) CREATE_EXAMPLE(animated animated.cxx fltk) CREATE_EXAMPLE(ask ask.cxx fltk) CREATE_EXAMPLE(bitmap bitmap.cxx fltk) -- cgit v1.2.3 From 563baced13e4961500dccd35b19e9b063c93dc9c Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Wed, 16 Jan 2019 02:12:29 +0100 Subject: Android CMake: fix, more autogenerated files Fixed a bug that would cause an error is Android Build was NOT defined. Creating list of test targets automatically. --- test/CMakeLists.txt | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 64bed5ca3..409f44e71 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -38,12 +38,18 @@ include_directories( ${CMAKE_CURRENT_BINARY_DIR} ) +####################################################################### +## testing creation of Android Studio IDE files +if (OPTION_CREATE_ANDROID_STUDIO_IDE) +CREATE_ANDROID_IDE_FOR_TEST(arc arc.cxx fltk) +CREATE_ANDROID_IDE_FOR_TEST(hello hello.cxx fltk) +CREATE_ANDROID_IDE_FOR_TEST(input input.cxx fltk) +endif (OPTION_CREATE_ANDROID_STUDIO_IDE) + ####################################################################### if(NOT ANDROID) CREATE_EXAMPLE(adjuster adjuster.cxx fltk) CREATE_EXAMPLE(arc arc.cxx fltk) -CREATE_ANDROID_IDE_FOR_TEST(arc arc.cxx fltk) -CREATE_ANDROID_IDE_FOR_TEST(hello hello.cxx fltk) CREATE_EXAMPLE(animated animated.cxx fltk) CREATE_EXAMPLE(ask ask.cxx fltk) CREATE_EXAMPLE(bitmap bitmap.cxx fltk) -- cgit v1.2.3