1CMAKE-MODULES(7)                     CMake                    CMAKE-MODULES(7)
2
3
4

NAME

6       cmake-modules - CMake Modules Reference
7

ALL MODULES

9   AddFileDependencies
10       ADD_FILE_DEPENDENCIES(source_file depend_files…)
11
12       Adds the given files as dependencies to source_file
13
14   AndroidTestUtilities
15       Create  a  test that automatically loads specified data onto an Android
16       device.
17
18   Introduction
19       Use this module to push data  needed  for  testing  an  Android  device
20       behavior  onto a connected Android device. The module will accept files
21       and libraries as well as separate destinations for each. It will create
22       a test that loads the files into a device object store and link to them
23       from the specified destination. The files are only uploaded if they are
24       not already in the object store.
25
26       For example:
27
28          include(AndroidTestUtilities)
29          android_add_test_data(
30            example_setup_test
31            FILES <files>...
32            LIBS <libs>...
33            DEVICE_TEST_DIR "/data/local/tests/example"
34            DEVICE_OBJECT_STORE "/sdcard/.ExternalData/SHA"
35            )
36
37       At  build  time a test named “example_setup_test” will be created.  Run
38       this test on the command line with ctest(1) to load the data  onto  the
39       Android device.
40
41   Module Functions
42       android_add_test_data
43
44                 android_add_test_data(<test-name>
45                   [FILES <files>...] [FILES_DEST <device-dir>]
46                   [LIBS <libs>...]   [LIBS_DEST <device-dir>]
47                   [DEVICE_OBJECT_STORE <device-dir>]
48                   [DEVICE_TEST_DIR <device-dir>]
49                   [NO_LINK_REGEX <strings>...]
50                   )
51
52              The  android_add_test_data  function  is  used to copy files and
53              libraries needed to run  project-specific  tests.  On  the  host
54              operating  system,  this  is  done  at build time. For on-device
55              testing, the files are loaded onto the device  by  the  manufac‐
56              tured test at run time.
57
58              This function accepts the following named parameters:
59
60              FILES <files>...
61                     zero or more files needed for testing
62
63              LIBS <libs>...
64                     zero or more libraries needed for testing
65
66              FILES_DEST <device-dir>
67                     absolute path where the data files are expected to be
68
69              LIBS_DEST <device-dir>
70                     absolute path where the libraries are expected to be
71
72              DEVICE_OBJECT_STORE <device-dir>
73                     absolute  path  to  the location where the data is stored
74                     on-device
75
76              DEVICE_TEST_DIR <device-dir>
77                     absolute path to the root directory of the on-device test
78                     location
79
80              NO_LINK_REGEX <strings>...
81                     list  of  regex  strings matching the names of files that
82                     should be copied from the object  store  to  the  testing
83                     directory
84