Tests/RunCMake/define_property/define_property-INITIALIZE_FROM_VARIABLE-subdirectory/CMakeLists.txt
raw| 1 | define_property(TARGET PROPERTY Test_PROP2 |
| 2 | INITIALIZE_FROM_VARIABLE Test_PROP2 |
| 3 | ) |
| 4 | define_property(TARGET PROPERTY Test_PROP3 |
| 5 | INITIALIZE_FROM_VARIABLE MyTest_PROP3 |
| 6 | ) |
| 7 | |
| 8 | add_executable(sub_exe ../main.c) |
| 9 | assert_prop_eq(sub_exe Test_PROP1 "Hello") |
| 10 | assert_prop_eq(sub_exe Test_PROP2 "world") |
| 11 | assert_prop_eq(sub_exe Test_PROP3 "!") |