on xenial help sign in
Install the platformtest executable and refer to its path via the TARGET_FILE macro
7ca7e39Pete Woods
tests/plugins/Unity/Platform/CMakeLists.txt+6−1
@@ -20,6 +20,11 @@ target_link_libraries(platformtest
20 ${QTDBUSTEST_LDFLAGS}
20 ${QTDBUSTEST_LDFLAGS}
21 )
21 )
22
22
23+
24+install(TARGETS platformtest
25+ DESTINATION "${SHELL_PRIVATE_LIBDIR}/tests/plugins/Unity/Platform"
26+)
27+
23add_unity8_unittest(Platform qdbus-simple-test-runner
28add_unity8_unittest(Platform qdbus-simple-test-runner
24− ARGS "${CMAKE_CURRENT_BINARY_DIR}/platformtest"
29+ ARGS $<TARGET_FILE:platformtest>
25 )
30 )