summaryrefslogtreecommitdiff
path: root/Tests/RunCMake/GenEx-GENEX_EVAL/TARGET_GENEX_EVAL.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-06-15 14:45:01 -0400
committerBrad King <brad.king@kitware.com>2020-06-16 08:03:36 -0400
commit6308bfb73777a7231928509ce651b45dfb6aa657 (patch)
tree8101f0b6b68edd346e839e543bd3f426fd15dc07 /Tests/RunCMake/GenEx-GENEX_EVAL/TARGET_GENEX_EVAL.cmake
parentabe1c2749946a067fa71cb92ba088d3b2acabc8a (diff)
downloadcmake-6308bfb73777a7231928509ce651b45dfb6aa657.tar.gz
Tests: Factor out RunCMake.GenEx-GENEX_EVAL test
Move the `GENEX_EVAL` cases and friends out of `RunCMake.GeneratorExpression`.
Diffstat (limited to 'Tests/RunCMake/GenEx-GENEX_EVAL/TARGET_GENEX_EVAL.cmake')
-rw-r--r--Tests/RunCMake/GenEx-GENEX_EVAL/TARGET_GENEX_EVAL.cmake10
1 files changed, 10 insertions, 0 deletions
diff --git a/Tests/RunCMake/GenEx-GENEX_EVAL/TARGET_GENEX_EVAL.cmake b/Tests/RunCMake/GenEx-GENEX_EVAL/TARGET_GENEX_EVAL.cmake
new file mode 100644
index 0000000000..68b3712579
--- /dev/null
+++ b/Tests/RunCMake/GenEx-GENEX_EVAL/TARGET_GENEX_EVAL.cmake
@@ -0,0 +1,10 @@
+
+cmake_policy(VERSION 3.11)
+
+enable_language(C)
+
+add_library (example SHARED empty.c)
+set_property (TARGET example PROPERTY CUSTOM_PROPERTY1 "PROPERTY1")
+set_property (TARGET example PROPERTY CUSTOM_PROPERTY2 "BEFORE_$<TARGET_PROPERTY:CUSTOM_PROPERTY1>_AFTER")
+
+file(GENERATE OUTPUT "TARGET_GENEX_EVAL-generated.txt" CONTENT "$<TARGET_GENEX_EVAL:example,$<TARGET_PROPERTY:example,CUSTOM_PROPERTY2>>")