2015-01-08 23:27:46 +03:00
|
|
|
function (check_directory_property dir prop)
|
|
|
|
get_directory_property(gdp_val DIRECTORY "${dir}" "${prop}")
|
|
|
|
get_property(gp_val
|
|
|
|
DIRECTORY "${dir}"
|
|
|
|
PROPERTY "${prop}")
|
|
|
|
|
|
|
|
message("get_directory_property: -->${gdp_val}<--")
|
|
|
|
message("get_property: -->${gp_val}<--")
|
|
|
|
endfunction ()
|
|
|
|
|
|
|
|
set_directory_properties(PROPERTIES empty "" custom value)
|
|
|
|
|
|
|
|
check_directory_property("${CMAKE_CURRENT_SOURCE_DIR}" empty)
|
|
|
|
check_directory_property("${CMAKE_CURRENT_SOURCE_DIR}" custom)
|
|
|
|
check_directory_property("${CMAKE_CURRENT_SOURCE_DIR}" noexist)
|
2016-09-19 20:32:29 +03:00
|
|
|
|
2016-09-19 20:33:56 +03:00
|
|
|
add_custom_target(CustomTop)
|
|
|
|
add_library(InterfaceTop INTERFACE)
|
|
|
|
add_library(my::InterfaceTop ALIAS InterfaceTop)
|
|
|
|
|
2016-09-19 20:32:29 +03:00
|
|
|
add_subdirectory(directory_properties)
|
|
|
|
check_directory_property("${CMAKE_CURRENT_SOURCE_DIR}" SUBDIRECTORIES)
|
|
|
|
check_directory_property("${CMAKE_CURRENT_SOURCE_DIR}/directory_properties" SUBDIRECTORIES)
|
2016-09-19 20:33:56 +03:00
|
|
|
check_directory_property("${CMAKE_CURRENT_SOURCE_DIR}" BUILDSYSTEM_TARGETS)
|
|
|
|
check_directory_property("${CMAKE_CURRENT_SOURCE_DIR}/directory_properties" BUILDSYSTEM_TARGETS)
|
2016-09-19 20:47:51 +03:00
|
|
|
|
|
|
|
check_directory_property("${CMAKE_CURRENT_SOURCE_DIR}" BINARY_DIR)
|
|
|
|
check_directory_property("${CMAKE_CURRENT_SOURCE_DIR}" SOURCE_DIR)
|
|
|
|
check_directory_property("${CMAKE_CURRENT_SOURCE_DIR}/directory_properties" BINARY_DIR)
|
|
|
|
check_directory_property("${CMAKE_CURRENT_SOURCE_DIR}/directory_properties" SOURCE_DIR)
|