blob: d657538f79c6d7eeadc7e597f935981a4476342a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
function(assert_prop_scope_eq prop scope value)
get_property(actual_value TARGET NONE PROPERTY ${prop} ${scope})
if(NOT actual_value STREQUAL value)
message(SEND_ERROR "Expected value of ${prop}'s ${scope}:\n ${value}\nActual value:\n ${actual_value}")
endif()
endfunction()
define_property(TARGET PROPERTY PROP1)
define_property(TARGET PROPERTY PROP2
BRIEF_DOCS "Brief")
define_property(TARGET PROPERTY PROP3
FULL_DOCS "Full")
define_property(TARGET PROPERTY PROP4
BRIEF_DOCS "Brief"
FULL_DOCS "Full")
assert_prop_scope_eq(PROP0 BRIEF_DOCS "NOTFOUND")
assert_prop_scope_eq(PROP0 FULL_DOCS "NOTFOUND")
assert_prop_scope_eq(PROP1 BRIEF_DOCS "NOTFOUND")
assert_prop_scope_eq(PROP1 FULL_DOCS "NOTFOUND")
assert_prop_scope_eq(PROP2 BRIEF_DOCS "Brief")
assert_prop_scope_eq(PROP2 FULL_DOCS "NOTFOUND")
assert_prop_scope_eq(PROP3 BRIEF_DOCS "NOTFOUND")
assert_prop_scope_eq(PROP3 FULL_DOCS "Full")
assert_prop_scope_eq(PROP4 BRIEF_DOCS "Brief")
assert_prop_scope_eq(PROP4 FULL_DOCS "Full")
|