blob: 226d5edb96ac3b62f42496f4cb566d4ac5022fbf [file] [log] [blame]
Thomas Psota94addb92019-03-12 16:16:18 +01001###############################################
2### diagnostics_print ###
3###############################################
4###
5### Prints different diagnostics and infos
6### about the specified target
7###
8
9function( diagnostics_print target_name )
10 build_source_group()
11
12 message(STATUS "${target_name} settings:")
13 message(STATUS "==============\n")
14
15 message(STATUS "Source Files:")
16 get_target_property(SOURCE_FILES ${target_name} SOURCES)
17 if(SOURCE_FILES)
18 message(STATUS "${SOURCE_FILES}")
19 endif()
20
21 message(STATUS "\nInclude Directories:")
22 get_target_property(HEADER_DIR ${target_name} INCLUDE_DIRECTORIES)
23 if(HEADER_DIR)
24 message(STATUS "${HEADER_DIR}")
25 endif()
26
27 message(STATUS "\nLink Libraries:")
28 get_target_property(LINKED_LIBS ${target_name} LINK_LIBRARIES)
29 if(LINKED_LIBS)
30 message(STATUS "${LINKED_LIBS}")
31 endif()
32
33 message(STATUS "\n")
34endfunction()