diff options
author | 2019-05-16 15:46:10 +0000 | |
---|---|---|
committer | 2019-05-16 15:46:10 +0000 | |
commit | 41ed041613107ae6f1bf9cae5147cfdc71a1ba54 (patch) | |
tree | c67e8bcd830e348c0a905fe52d48a248c0031132 /apps/CMakeLists.txt | |
parent | db8d063677b42c0ec8191728e55d1d5efef80822 (diff) | |
parent | 5c9b2cd16e76b7d731bd31422b4a555dbeff1541 (diff) |
Merge "[HICN-195] Generate static libs for android"
Diffstat (limited to 'apps/CMakeLists.txt')
-rw-r--r-- | apps/CMakeLists.txt | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/apps/CMakeLists.txt b/apps/CMakeLists.txt index 5fed15380..f2a950a6d 100644 --- a/apps/CMakeLists.txt +++ b/apps/CMakeLists.txt @@ -30,10 +30,19 @@ if(CMAKE_SOURCE_DIR STREQUAL PROJECT_SOURCE_DIR) include_directories(${LIBTRANSPORT_INCLUDE_DIRS}) set(HICN_APPS hicn-apps) else() - set(LIBTRANSPORT_LIBRARIES ${LIBTRANSPORT_SHARED}) - list(APPEND DEPENDENCIES - ${LIBTRANSPORT_LIBRARIES} - ) + if (ANDROID_API) + find_package(OpenSSL REQUIRED) + find_package(ZLIB REQUIRED) + set(LIBTRANSPORT_LIBRARIES ${LIBTRANSPORT}) + list(APPEND DEPENDENCIES + ${LIBTRANSPORT_LIBRARIES} + ) + else () + set(LIBTRANSPORT_LIBRARIES ${LIBTRANSPORT_SHARED}) + list(APPEND DEPENDENCIES + ${LIBTRANSPORT_LIBRARIES} + ) + endif () endif() set(SUFFIX "") @@ -45,6 +54,7 @@ set(HICN_APPS "${HICN_APPS}${SUFFIX}") list(APPEND LIBRARIES ${LIBTRANSPORT_LIBRARIES} + ${OPENSSL_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT} ) |