2015-04-27 22:25:09 +02:00
|
|
|
function (check_target_property target prop)
|
|
|
|
get_target_property(gtp_val "${target}" "${prop}")
|
|
|
|
get_property(gp_val
|
|
|
|
TARGET "${target}"
|
|
|
|
PROPERTY "${prop}")
|
|
|
|
|
|
|
|
message("get_target_property: -->${gtp_val}<--")
|
|
|
|
message("get_property: -->${gp_val}<--")
|
|
|
|
endfunction ()
|
|
|
|
|
|
|
|
add_custom_target(tgt)
|
|
|
|
set_target_properties(tgt PROPERTIES empty "" custom value)
|
|
|
|
|
|
|
|
check_target_property(tgt empty)
|
|
|
|
check_target_property(tgt custom)
|
|
|
|
check_target_property(tgt noexist)
|
2015-11-17 17:22:37 +01:00
|
|
|
check_target_property(tgt SOURCE_DIR)
|
|
|
|
check_target_property(tgt BINARY_DIR)
|
2018-04-23 21:13:27 +02:00
|
|
|
|
|
|
|
add_library(imported_local_tgt SHARED IMPORTED)
|
|
|
|
add_library(imported_global_tgt SHARED IMPORTED GLOBAL)
|
|
|
|
|
|
|
|
check_target_property(tgt IMPORTED_GLOBAL)
|
|
|
|
check_target_property(imported_local_tgt IMPORTED_GLOBAL)
|
|
|
|
check_target_property(imported_global_tgt IMPORTED_GLOBAL)
|