1CMakeLists: add an option to install tests 2 3Upstream-Status: Inappropriate [OE ptest specific] 4 5Original author: Yao Zhao <yao.zhao@windriver.com> 6Signed-off-by: Jackie Huang <jackie.huang@windriver.com> 7 8diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt 9index 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) 23