Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 1 | CMakeLists: add an option to install tests |
| 2 | |
| 3 | Upstream-Status: Inappropriate [OE ptest specific] |
| 4 | |
| 5 | Original author: Yao Zhao <yao.zhao@windriver.com> |
| 6 | Signed-off-by: Jackie Huang <jackie.huang@windriver.com> |
| 7 | |
| 8 | diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt |
| 9 | index da8da1b..de04059 100644 |
| 10 | --- a/tests/CMakeLists.txt |
| 11 | +++ b/tests/CMakeLists.txt |
| 12 | @@ -113,4 +113,9 @@ ENDFOREACH( TEST ) |
| 13 | #### |
| 14 | ## INSTALL section ## |
| 15 | |
| 16 | -# we do not install the tests |
| 17 | +# install the tests |
| 18 | +SET(INSTALL_TEST_SUFFIX /opt/${FD_PROJECT_NAME}-tests CACHE PATH "Directory where the test binary is installed.") |
| 19 | + |
| 20 | +INSTALL(TARGETS ${TEST_LIST} |
| 21 | + RUNTIME DESTINATION ${INSTALL_TEST_SUFFIX} |
| 22 | + COMPONENT freeDiameter-common) |