cmake_minimum_required(VERSION 3.21) project(EXAMPLE_NOTIFICATION) macro(dump_target_includes TARGET_NAME) set(OUT_TMP "====dump_target_includes begin (${TARGET_NAME})====\n\n") set(INCLUDE_DIRS $) set(INTERFACE_INCLUDE_DIRS $) string(CONCAT OUT_TMP ${OUT_TMP} "----INCLUDE_DIRECTORIES----\n") string(CONCAT OUT_TMP ${OUT_TMP} $,\n>\n\n) string(CONCAT OUT_TMP ${OUT_TMP} "----INTERFACE_INCLUDE_DIRECTORIES----\n") string(CONCAT OUT_TMP ${OUT_TMP} $,\n>\n\n) string(CONCAT OUT_TMP ${OUT_TMP} "----INTERFACE_LINK_LIBRARIES----\n") string(CONCAT OUT_TMP ${OUT_TMP} $,\n>\n\n) string(CONCAT OUT_TMP ${OUT_TMP} "====dump_target_includes end (${TARGET_NAME})====") file(GENERATE OUTPUT "target_includes${TARGET_NAME}.log" CONTENT ${OUT_TMP}) endmacro() message(STATUS "Configuring Notification Example") add_executable(example_notification main.cpp) target_link_libraries(example_notification simpledbus::simpledbus) dump_target_includes(example_notification) dump_target_includes(simpledbus::simpledbus)