on xenial help sign in
Install the platformtest executable and refer to its path via the TARGET_FILE macro
commit7ca7e39936f0a9324d524850c6e7d4633df5d0f5 authorPete Woods <pete.woods@canonical.com> dateMon 20 Mar 2017, 16:29 (10 years ago) parent2198ed0
1 file changed+6−1
tests/plugins/Unity/Platform/CMakeLists.txt+6−1
tests/plugins/Unity/Platform/CMakeLists.txt+6−1
@@ -20,6 +20,11 @@ target_link_libraries(platformtest
2020 ${QTDBUSTEST_LDFLAGS}
2121 )
2222
23+
24+install(TARGETS platformtest
25+ DESTINATION "${SHELL_PRIVATE_LIBDIR}/tests/plugins/Unity/Platform"
26+)
27+
2328add_unity8_unittest(Platform qdbus-simple-test-runner
24− ARGS "${CMAKE_CURRENT_BINARY_DIR}/platformtest"
29+ ARGS $<TARGET_FILE:platformtest>
2530 )