blob: d100f9c7215de28c9b1c8eaaff2c8ea2e34aca09 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
# FindLibAndroidJNI
# -------
# Finds the LibAndroidJNI library
#
# This will define the following variables::
#
# LIBANDROIDJNI_FOUND - system has LibAndroidJNI
# LIBANDROIDJNI_INCLUDE_DIRS - the LibAndroidJNI include directory
# LIBANDROIDJNI_LIBRARIES - the LibAndroidJNI libraries
#
# and the following imported targets::
#
# libandroidjni - The LibAndroidJNI library
include(cmake/scripts/common/ModuleHelpers.cmake)
set(MODULE_LC libandroidjni)
SETUP_BUILD_VARS()
set(CMAKE_ARGS -DCMAKE_BUILD_TYPE=Release)
BUILD_DEP_TARGET()
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(LibAndroidJNI
REQUIRED_VARS LIBANDROIDJNI_LIBRARY LIBANDROIDJNI_INCLUDE_DIR
VERSION_VAR LIBANDROIDJNI_VER)
if(LIBANDROIDJNI_FOUND)
set(LIBANDROIDJNI_LIBRARIES ${LIBANDROIDJNI_LIBRARY})
set(LIBANDROIDJNI_INCLUDE_DIRS ${LIBANDROIDJNI_INCLUDE_DIR})
set_property(GLOBAL APPEND PROPERTY INTERNAL_DEPS_PROP libandroidjni)
endif()
mark_as_advanced(LIBANDROIDJNI_INCLUDE_DIR LIBANDROIDJNI_LIBRARY)
|