From 9f96225dc93a97467f1e2107e23b79cb10744917 Mon Sep 17 00:00:00 2001 From: Robert Tari Date: Fri, 5 Feb 2021 14:09:34 +0100 Subject: Add CMakeLists.txt files. --- example/CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 example/CMakeLists.txt (limited to 'example') diff --git a/example/CMakeLists.txt b/example/CMakeLists.txt new file mode 100644 index 0000000..fed6750 --- /dev/null +++ b/example/CMakeLists.txt @@ -0,0 +1,7 @@ +# 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") -- cgit v1.2.3 From 42a5485d18b7a2ff07c1f59957a4246e7334a4d4 Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Tue, 20 Apr 2021 22:10:53 +0200 Subject: example/CMakeLists.txt: The example/ folder requires the library to have been built. Fix parallel build issue with -DDISABLED_TESTS=OFF option. --- example/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) (limited to 'example') diff --git a/example/CMakeLists.txt b/example/CMakeLists.txt index fed6750..52f7bde 100644 --- a/example/CMakeLists.txt +++ b/example/CMakeLists.txt @@ -5,3 +5,4 @@ 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) -- cgit v1.2.3 From 715feb6c46d4f25baad053eaf1c43129c65328cf Mon Sep 17 00:00:00 2001 From: Robert Tari Date: Fri, 5 Feb 2021 14:12:07 +0100 Subject: Remove automake-related files --- example/Makefile.am | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100644 example/Makefile.am (limited to 'example') 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 -- cgit v1.2.3 From 2ebe5c8e1f240bdd4b27401b4e52213425c7686d Mon Sep 17 00:00:00 2001 From: Robert Tari Date: Wed, 3 Feb 2021 07:48:32 +0100 Subject: Drop local config.h includes. Fixes AyatanaIndicators/ayatana-ido#25 --- example/menus.c | 1 - 1 file changed, 1 deletion(-) (limited to 'example') 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) -- cgit v1.2.3