You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
615 B
19 lines
615 B
10 years ago
|
function (check_install_property file prop)
|
||
|
get_property(gp_val
|
||
|
INSTALL "${file}"
|
||
|
PROPERTY "${prop}")
|
||
|
|
||
|
message("get_property: -->${gp_val}<--")
|
||
|
endfunction ()
|
||
|
|
||
|
install(
|
||
|
FILES "${CMAKE_CURRENT_LIST_FILE}"
|
||
|
DESTINATION "${CMAKE_CURRENT_LIST_DIR}"
|
||
|
RENAME "installed-file-dest")
|
||
|
set_property(INSTALL "${CMAKE_CURRENT_LIST_FILE}" PROPERTY empty "")
|
||
|
set_property(INSTALL "${CMAKE_CURRENT_LIST_FILE}" PROPERTY custom value)
|
||
|
|
||
|
check_install_property("${CMAKE_CURRENT_LIST_FILE}" empty)
|
||
|
check_install_property("${CMAKE_CURRENT_LIST_FILE}" custom)
|
||
|
check_install_property("${CMAKE_CURRENT_LIST_FILE}" noexist)
|