summaryrefslogtreecommitdiff
path: root/example
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2026-06-10 17:46:52 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2026-06-10 17:47:58 +0200
commit540df10367b945ced0d24750e845f28317a1dd4a (patch)
treee1b2d8299de843d945b516b9d019f03891451c9f /example
parent3bca2cded2fecfaf4ba2f9bddadbd50a37ede9d8 (diff)
downloadlibayatana-appindicator-540df10367b945ced0d24750e845f28317a1dd4a.tar.gz
libayatana-appindicator-540df10367b945ced0d24750e845f28317a1dd4a.tar.bz2
libayatana-appindicator-540df10367b945ced0d24750e845f28317a1dd4a.zip
CMake: Add ${CMAKE_BINARY_DIR}/src to target_include_directories()
Required to find src/app-indicator-version.h which gets generated from src/app-indicator-version.h.in.
Diffstat (limited to 'example')
-rw-r--r--example/CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/example/CMakeLists.txt b/example/CMakeLists.txt
index 0b5f133..7b695d4 100644
--- a/example/CMakeLists.txt
+++ b/example/CMakeLists.txt
@@ -34,6 +34,8 @@ if (FLAVOUR_GTK3)
set_source_files_properties("${CMAKE_CURRENT_BINARY_DIR}/simple-client-vala.c" PROPERTIES COMPILE_FLAGS " -include ${CMAKE_SOURCE_DIR}/src/app-indicator.h -Wno-incompatible-pointer-types -Wno-unused-but-set-variable")
add_executable("simple-client-vala" "${CMAKE_CURRENT_BINARY_DIR}/simple-client-vala.c")
target_include_directories("simple-client-vala" PUBLIC ${PROJECT_DEPS_INCLUDE_DIRS})
+ target_include_directories("simple-client-vala" PUBLIC "${CMAKE_SOURCE_DIR}/src")
+ target_include_directories("simple-client-vala" PUBLIC "${CMAKE_BINARY_DIR}/src")
target_link_libraries("simple-client-vala" "${PROJECT_DEPS_LIBRARIES} -l${ayatana_appindicator_gtkver} -L${CMAKE_BINARY_DIR}/src")
add_dependencies("simple-client-vala" "${ayatana_appindicator_gtkver}")
@@ -45,5 +47,6 @@ add_executable("simple-client" "${CMAKE_CURRENT_SOURCE_DIR}/simple-client.c")
target_compile_definitions("simple-client" PUBLIC LOCAL_ICON="${CMAKE_CURRENT_SOURCE_DIR}/simple-client-test-icon.png")
target_include_directories("simple-client" PUBLIC ${PROJECT_DEPS_INCLUDE_DIRS})
target_include_directories("simple-client" PUBLIC "${CMAKE_SOURCE_DIR}/src")
+target_include_directories("simple-client" PUBLIC "${CMAKE_BINARY_DIR}/src")
target_link_libraries("simple-client" "${PROJECT_DEPS_LIBRARIES} -l${ayatana_appindicator_gtkver} -L${CMAKE_BINARY_DIR}/src")
add_dependencies("simple-client" "${ayatana_appindicator_gtkver}")