diff options
Diffstat (limited to 'Tests/RunCMake/add_test/TestLauncher.cmake')
-rw-r--r-- | Tests/RunCMake/add_test/TestLauncher.cmake | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Tests/RunCMake/add_test/TestLauncher.cmake b/Tests/RunCMake/add_test/TestLauncher.cmake index 023b663..bef441d 100644 --- a/Tests/RunCMake/add_test/TestLauncher.cmake +++ b/Tests/RunCMake/add_test/TestLauncher.cmake @@ -5,6 +5,8 @@ add_test(NAME DoesNotUseLauncher COMMAND ${CMAKE_COMMAND} -E echo "Hi") add_executable(exe main.c) +get_property(test_launcher TARGET exe PROPERTY TEST_LAUNCHER) +set_property(TARGET exe PROPERTY TEST_LAUNCHER "$<1:${test_launcher}>") add_test(NAME UsesTestLauncher COMMAND exe) @@ -19,3 +21,8 @@ add_test(NAME UsesTestLauncherWithExecTargetFromSubdirAddedWithoutGenex add_test(NAME DoesNotUseTestLauncherWithExecTargetFromSubdirAddedWithGenex COMMAND $<TARGET_FILE:subdir_exe_with_genex>) + +add_executable(local_launcher ../pseudo_emulator.c) +add_executable(use_launcher_local main.c) +set_property(TARGET use_launcher_local PROPERTY TEST_LAUNCHER "$<TARGET_FILE:local_launcher>") +add_test(NAME UsesLocalLauncher COMMAND use_launcher_local) |