summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/AppleTextStubs/LibraryWithOutputs.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/RunCMake/AppleTextStubs/LibraryWithOutputs.cmake')
-rw-r--r--Tests/RunCMake/AppleTextStubs/LibraryWithOutputs.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/Tests/RunCMake/AppleTextStubs/LibraryWithOutputs.cmake b/Tests/RunCMake/AppleTextStubs/LibraryWithOutputs.cmake
index f61c8f2..9c7107a 100644
--- a/Tests/RunCMake/AppleTextStubs/LibraryWithOutputs.cmake
+++ b/Tests/RunCMake/AppleTextStubs/LibraryWithOutputs.cmake
@@ -7,6 +7,9 @@ set_property(TARGET foo PROPERTY ARCHIVE_OUTPUT_NAME "tbd")
add_executable(main main.c)
target_link_libraries(main PRIVATE foo)
+set_property(TARGET main PROPERTY RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin/$<CONFIG>")
+
+add_custom_target(run COMMAND "$<TARGET_FILE:main>")
set (GENERATE_CONTENT "if (\"${CMAKE_TAPI}\")