summaryrefslogtreecommitdiff
path: root/cmake/aitt_android_mosquitto.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/aitt_android_mosquitto.cmake')
-rw-r--r--cmake/aitt_android_mosquitto.cmake14
1 files changed, 14 insertions, 0 deletions
diff --git a/cmake/aitt_android_mosquitto.cmake b/cmake/aitt_android_mosquitto.cmake
new file mode 100644
index 0000000..4428534
--- /dev/null
+++ b/cmake/aitt_android_mosquitto.cmake
@@ -0,0 +1,14 @@
+if(CMAKE_VERSION VERSION_LESS "3.10.0")
+ if(DEFINED AITT_ANDROID_MOSQUITTO)
+ return()
+ endif()
+ set(AITT_ANDROID_MOSQUITTO TRUE)
+else(CMAKE_VERSION VERSION_LESS "3.10.0")
+ include_guard(GLOBAL)
+endif(CMAKE_VERSION VERSION_LESS "3.10.0")
+
+include_directories(${PROJECT_ROOT_DIR}/third_party/mosquitto-2.0.14/include)
+
+link_directories(${PROJECT_ROOT_DIR}/android/mosquitto/.cxx/cmake/debug/${ANDROID_ABI}/lib)
+
+set(MOSQUITTO_LIBRARY ${PROJECT_ROOT_DIR}/android/mosquitto/.cxx/cmake/debug/${ANDROID_ABI}/lib/libmosquitto_static.a)