aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorRobert Tari <robert@tari.in>2021-02-11 15:22:22 +0100
committerRobert Tari <robert@tari.in>2021-05-12 12:49:57 +0200
commit1fa174f54c9604499f059489e544cfc59c825f27 (patch)
tree073f2037a4bf11b78601722368bacc3889641f3f /tools
parent729e95bc9d9337fe87eae3ea98a051be52570153 (diff)
downloadlibayatana-indicator-1fa174f54c9604499f059489e544cfc59c825f27.tar.gz
libayatana-indicator-1fa174f54c9604499f059489e544cfc59c825f27.tar.bz2
libayatana-indicator-1fa174f54c9604499f059489e544cfc59c825f27.zip
Add CMakeLists.txt files + tests/test-loader.c: fix library paths + Fix include paths
tests/test-loader.c: fix library paths
Diffstat (limited to 'tools')
-rw-r--r--tools/CMakeLists.txt8
-rw-r--r--tools/indicator-loader.c4
2 files changed, 10 insertions, 2 deletions
diff --git a/tools/CMakeLists.txt b/tools/CMakeLists.txt
new file mode 100644
index 0000000..4120f31
--- /dev/null
+++ b/tools/CMakeLists.txt
@@ -0,0 +1,8 @@
+# ayatana-indicator-loader3
+
+set_source_files_properties(indicator-loader.c PROPERTIES COMPILE_FLAGS ${COMPILE_FLAGS})
+add_executable("ayatana-indicator-loader3" indicator-loader.c)
+target_include_directories("ayatana-indicator-loader3" PUBLIC ${PROJECT_DEPS_INCLUDE_DIRS})
+target_include_directories("ayatana-indicator-loader3" PUBLIC "${CMAKE_SOURCE_DIR}/src")
+target_link_libraries("ayatana-indicator-loader3" ${PROJECT_DEPS_LIBRARIES} "-L${CMAKE_BINARY_DIR}/src" -layatana-indicator3)
+add_dependencies("ayatana-indicator-loader3" "ayatana-indicator3")
diff --git a/tools/indicator-loader.c b/tools/indicator-loader.c
index ad4fdf4..50b5143 100644
--- a/tools/indicator-loader.c
+++ b/tools/indicator-loader.c
@@ -25,9 +25,9 @@
#include <gtk/gtk.h>
#include <libayatana-ido/libayatana-ido.h>
-#include "src/indicator-object.h"
+#include "indicator-object.h"
#if GTK_CHECK_VERSION (3,0,0)
- #include "src/indicator-ng.h"
+ #include "indicator-ng.h"
#endif
static GHashTable * entry_to_menu_item = NULL;