summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CPackInstallProperties/ValueGenex.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/RunCMake/CPackInstallProperties/ValueGenex.cmake')
-rw-r--r--Tests/RunCMake/CPackInstallProperties/ValueGenex.cmake7
1 files changed, 7 insertions, 0 deletions
diff --git a/Tests/RunCMake/CPackInstallProperties/ValueGenex.cmake b/Tests/RunCMake/CPackInstallProperties/ValueGenex.cmake
new file mode 100644
index 0000000..2e1d465
--- /dev/null
+++ b/Tests/RunCMake/CPackInstallProperties/ValueGenex.cmake
@@ -0,0 +1,7 @@
+add_executable(mytest test.cpp)
+
+file(GENERATE OUTPUT runtest_info.cmake CONTENT [[
+set(EXPECTED_MYTEST_NAME "$<TARGET_FILE_NAME:mytest>")
+]])
+
+set_property(INSTALL bar/test.cpp PROPERTY CPACK_TEST_PROP $<TARGET_FILE_NAME:mytest>)