From 0a0a4c07268fff324321d27bc3129486e96c07a3 Mon Sep 17 00:00:00 2001 From: Jacob Hageman Date: Fri, 11 Sep 2020 13:02:24 -0400 Subject: [PATCH] Fix #30, Install unit test to target directory --- unit-test/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/unit-test/CMakeLists.txt b/unit-test/CMakeLists.txt index cc53e2e..91b720b 100644 --- a/unit-test/CMakeLists.txt +++ b/unit-test/CMakeLists.txt @@ -92,7 +92,9 @@ foreach(SRCFILE ${LIB_SRC_FILES}) # Add it to the set of tests to run as part of "make test" add_test(${TESTNAME} ${TESTNAME}-testrunner) - install(TARGETS ${TESTNAME}-testrunner DESTINATION ${TGTNAME}/${UT_INSTALL_SUBDIR}) + foreach(TGT ${INSTALL_TARGET_LIST}) + install(TARGETS ${TESTNAME}-testrunner DESTINATION ${TGT}/${UT_INSTALL_SUBDIR}) + endforeach() endforeach()