aboutsummaryrefslogtreecommitdiff
path: root/example
diff options
context:
space:
mode:
Diffstat (limited to 'example')
-rw-r--r--example/CMakeLists.txt8
-rw-r--r--example/Makefile.am19
-rw-r--r--example/menus.c1
3 files changed, 8 insertions, 20 deletions
diff --git a/example/CMakeLists.txt b/example/CMakeLists.txt
new file mode 100644
index 0000000..52f7bde
--- /dev/null
+++ b/example/CMakeLists.txt
@@ -0,0 +1,8 @@
+# menus
+
+set_source_files_properties(menus.c PROPERTIES COMPILE_FLAGS ${COMPILE_FLAGS})
+add_executable("menus" menus.c)
+target_include_directories("menus" PUBLIC ${PROJECT_DEPS_INCLUDE_DIRS})
+target_link_libraries("menus" ${PROJECT_DEPS_LIBRARIES} "-L${CMAKE_BINARY_DIR}/src" -layatana-ido3-0.4)
+target_include_directories("menus" PUBLIC "${CMAKE_SOURCE_DIR}/src")
+add_dependencies("menus" ayatana-ido3-0.4)
diff --git a/example/Makefile.am b/example/Makefile.am
deleted file mode 100644
index d52ac1c..0000000
--- a/example/Makefile.am
+++ /dev/null
@@ -1,19 +0,0 @@
-VER=3
-
-noinst_PROGRAMS = \
- menus
-
-menus_SOURCES = \
- menus.c
-
-menus_CPPFLAGS = \
- -I$(top_srcdir) \
- -I$(top_srcdir)/src \
- -I$(top_builddir)/src \
- $(GCC_FLAGS) \
- $(GTK_CFLAGS) \
- $(MAINTAINER_CFLAGS)
-
-menus_LDADD = $(top_builddir)/src/libayatana-ido$(VER)-0.4.la $(GTK_LIBS)
-
-DISTCLEANFILES = Makefile.in
diff --git a/example/menus.c b/example/menus.c
index ccfab69..1786697 100644
--- a/example/menus.c
+++ b/example/menus.c
@@ -7,7 +7,6 @@
#include "idoswitchmenuitem.h"
#include "idousermenuitem.h"
#include "idoremovablemenuitem.h"
-#include "config.h"
static void
slider_grabbed (GtkWidget *widget, gpointer user_data)