[gnome-panel/wip/segeiger/reference-documentation: 16/17] CMakeLists.txt



commit 6bc7ff11d0528a786f4e3f2cc6b7753a026a149e
Author: Sebastian Geiger <sbastig gmx net>
Date:   Fri Sep 11 20:42:18 2015 +0200

    CMakeLists.txt

 CMakeLists.txt |  241 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 241 insertions(+), 0 deletions(-)
---
diff --git a/CMakeLists.txt b/CMakeLists.txt
new file mode 100644
index 0000000..b45e598
--- /dev/null
+++ b/CMakeLists.txt
@@ -0,0 +1,241 @@
+cmake_minimum_required(VERSION 3.1)
+project(gnome_panel C)
+
+include(GNUInstallDirs)
+
+set(CMAKE_C_FLAGS  "${CMAKE_C_FLAGS} -Wall -Wformat -Wformat-security -Wextra -Wshadow -Wmissing-prototypes 
-Wmissing-declarations -Wno-unused-parameter -Wno-deprecated-declarations -std=c99 -lm")
+
+add_definitions(-DGETTEXT_PACKAGE="gnome-panel-3.0")
+add_definitions(-DGNOMELOCALEDIR="${CMAKE_INSTALL_FULL_LOCALEDIR}")
+add_definitions(-DPACKAGE="${CMAKE_PROJECT_NAME}")
+add_definitions(-DVERSION="${3.17.2}")
+
+find_package(PkgConfig REQUIRED)
+#Commented out to use the directories in /opt/gnome-build instead
+#pkg_check_modules(GTK3 REQUIRED gtk+-3.0)
+pkg_check_modules(GDK3 REQUIRED gdk-3.0)
+pkg_check_modules(LIBECAL REQUIRED libecal-1.2)
+pkg_check_modules(CAIRO REQUIRED cairo)
+pkg_check_modules(X11 REQUIRED x11)
+pkg_check_modules(GMENU REQUIRED libgnome-menu-3.0)
+pkg_check_modules(PANEL_APPLET REQUIRED libpanelapplet-4.0)
+
+
+include_directories(/opt/gnome-build/include/gtk-3.0 /opt/gnome-build/include/atk-1.0 
/opt/gnome-build/include/at-spi2-atk/2.0 /opt/gnome-build/include
+                    /opt/gnome-build/include/pango-1.0
+                    /opt/gnome-build/include/gio-unix-2.0
+                    /opt/gnome-build/include/cairo
+                    /opt/gnome-build/include/gdk-pixbuf-2.0
+                    /opt/gnome-build/include/glib-2.0
+                    /opt/gnome-build/lib/glib-2.0/include
+                    /opt/gnome-build/include/at-spi-2.0
+                    /opt/gnome-build/include/harfbuzz
+                    /opt/gnome-build/include/gnome-panel/libpanel-applet
+                    /usr/include/freetype2
+                    /usr/include/dbus-1.0
+                    /usr/lib/x86_64-linux-gnu/dbus-1.0/include
+                    /usr/include/dconf
+                    /usr/include/pixman-1
+                    /usr/include/libpng12
+                    /usr/include/libdrm ${LIBECAL_INCLUDE_DIRS} ${CAIRO_INCLUDE_DIRS} ${X11_INCLUDE_DIRS} 
${GDK3_INCLUDE_DIRS} ${GMENU_INCLUDE_DIRS})
+link_directories(/opt/gnome-build/lib/ ${LIBECAL_LIBRARY_DIRS} ${CAIRO_LIBRARY_DIRS} ${X11_LIBRARY_DIRS} 
${GDK3_LIBRARY_DIRS} ${GMENU_LIBRARY_DIRS} -lpanel-applet-5)
+
+set(APPLET_FILES
+       applets/clock/calendar-client.c
+       applets/clock/calendar-client.h
+       applets/clock/calendar-debug.h
+       applets/clock/calendar-sources.c
+       applets/clock/calendar-sources.h
+       applets/clock/calendar-window.c
+       applets/clock/calendar-window.h
+       applets/clock/clock-face.c
+       applets/clock/clock-face.h
+       applets/clock/clock-location-tile.c
+       applets/clock/clock-location-tile.h
+       applets/clock/clock-location.c
+       applets/clock/clock-location.h
+       applets/clock/clock-map.c
+       applets/clock/clock-map.h
+       applets/clock/clock-sunpos.c
+       applets/clock/clock-sunpos.h
+       applets/clock/clock-utils.c
+       applets/clock/clock-utils.h
+       applets/clock/clock.c
+       applets/clock/clock.h
+       applets/clock/set-timezone.c
+       applets/clock/set-timezone.h
+       applets/clock/system-timezone.c
+       applets/clock/system-timezone.h
+       applets/clock/test-system-timezone.c
+       applets/fish/fish.c
+       applets/notification_area/fixedtip.c
+       applets/notification_area/fixedtip.h
+       applets/notification_area/main.c
+       applets/notification_area/main.h
+       applets/notification_area/na-tray-child.c
+       applets/notification_area/na-tray-child.h
+       applets/notification_area/na-tray-manager.c
+       applets/notification_area/na-tray-manager.h
+       applets/notification_area/na-tray.c
+       applets/notification_area/na-tray.h
+       applets/notification_area/testtray.c
+       applets/wncklet/showdesktop.c
+       applets/wncklet/showdesktop.h
+       applets/wncklet/window-list.c
+       applets/wncklet/window-list.h
+       applets/wncklet/window-menu.c
+       applets/wncklet/window-menu.h
+       applets/wncklet/wncklet.c
+       applets/wncklet/wncklet.h
+       applets/wncklet/workspace-switcher.c
+       applets/wncklet/workspace-switcher.h
+       #applets/separator/separator-applet.c
+       #applets/usermenu/panel-user-menu.c
+       #applets/usermenu/panel-user-menu.h
+)
+
+SET(LIBPANEL_UTIL_FILES
+       gnome-panel/libpanel-util/panel-cleanup.c
+       gnome-panel/libpanel-util/panel-cleanup.h
+       gnome-panel/libpanel-util/panel-color.c
+       gnome-panel/libpanel-util/panel-color.h
+       gnome-panel/libpanel-util/panel-dconf.c
+       gnome-panel/libpanel-util/panel-dconf.h
+       gnome-panel/libpanel-util/panel-error.c
+       gnome-panel/libpanel-util/panel-error.h
+       gnome-panel/libpanel-util/panel-glib.c
+       gnome-panel/libpanel-util/panel-glib.h
+       gnome-panel/libpanel-util/panel-gsettings.c
+       gnome-panel/libpanel-util/panel-gsettings.h
+       gnome-panel/libpanel-util/panel-gtk.c
+       gnome-panel/libpanel-util/panel-gtk.h
+       gnome-panel/libpanel-util/panel-icon-chooser.c
+       gnome-panel/libpanel-util/panel-icon-chooser.h
+       gnome-panel/libpanel-util/panel-keyfile.c
+       gnome-panel/libpanel-util/panel-keyfile.h
+       gnome-panel/libpanel-util/panel-launch.c
+       gnome-panel/libpanel-util/panel-launch.h
+       gnome-panel/libpanel-util/panel-list.c
+       gnome-panel/libpanel-util/panel-list.h
+       gnome-panel/libpanel-util/panel-screensaver.c
+       gnome-panel/libpanel-util/panel-screensaver.h
+       gnome-panel/libpanel-util/panel-session-manager.c
+       gnome-panel/libpanel-util/panel-session-manager.h
+       gnome-panel/libpanel-util/panel-show.c
+       gnome-panel/libpanel-util/panel-show.h
+       gnome-panel/libpanel-util/panel-xdg.c
+       gnome-panel/libpanel-util/panel-xdg.h)
+
+SET(GNOME_PANEL_FILES
+       gnome-panel/libpanel-applet-private/panel-applet-container.c
+       gnome-panel/libpanel-applet-private/panel-applet-container.h
+       gnome-panel/libpanel-applet-private/panel-applet-frame-dbus.c
+       gnome-panel/libpanel-applet-private/panel-applet-frame-dbus.h
+       gnome-panel/libpanel-applet-private/panel-applet-mini.c
+       gnome-panel/libpanel-applet-private/panel-applets-manager-dbus.c
+       gnome-panel/libpanel-applet-private/panel-applets-manager-dbus.h
+       gnome-panel/applet.c
+       gnome-panel/applet.h
+       gnome-panel/button-widget.c
+       gnome-panel/button-widget.h
+       gnome-panel/gnome-desktop-item-edit.c
+       gnome-panel/launcher.c
+       gnome-panel/launcher.h
+       gnome-panel/main.c
+       gnome-panel/menu.c
+       gnome-panel/menu.h
+       gnome-panel/free-the-fish.c
+       gnome-panel/free-the-fish.h
+       gnome-panel/panel-a11y.c
+       gnome-panel/panel-a11y.h
+       gnome-panel/panel-action-button.c
+       gnome-panel/panel-action-button.h
+       gnome-panel/panel-action-protocol.c
+       gnome-panel/panel-action-protocol.h
+       gnome-panel/panel-addto-dialog.c
+       gnome-panel/panel-addto-dialog.h
+       gnome-panel/panel-applet-frame.c
+       gnome-panel/panel-applet-frame.h
+       gnome-panel/panel-applet-info.c
+       gnome-panel/panel-applet-info.h
+       gnome-panel/panel-applets-manager.c
+       gnome-panel/panel-applets-manager.h
+       gnome-panel/panel-background-monitor.c
+       gnome-panel/panel-background-monitor.h
+       gnome-panel/panel-background.c
+       gnome-panel/panel-background.h
+       gnome-panel/panel-bindings.c
+       gnome-panel/panel-bindings.h
+       gnome-panel/panel-compatibility.c
+       gnome-panel/panel-compatibility.h
+       gnome-panel/panel-context-menu.c
+       gnome-panel/panel-context-menu.h
+       gnome-panel/panel-ditem-editor.c
+       gnome-panel/panel-ditem-editor.h
+       gnome-panel/panel-enums-gsettings.h
+       gnome-panel/panel-enums.h
+       gnome-panel/panel-force-quit.c
+       gnome-panel/panel-force-quit.h
+       gnome-panel/panel-frame.c
+       gnome-panel/panel-frame.h
+       gnome-panel/panel-globals.h
+       gnome-panel/panel-icon-names.h
+       gnome-panel/panel-layout.c
+       gnome-panel/panel-layout.h
+       gnome-panel/panel-lockdown.c
+       gnome-panel/panel-lockdown.h
+       gnome-panel/panel-menu-bar-object.c
+       gnome-panel/panel-menu-bar-object.h
+       gnome-panel/panel-menu-bar.c
+       gnome-panel/panel-menu-bar.h
+       gnome-panel/panel-menu-button.c
+       gnome-panel/panel-menu-button.h
+       gnome-panel/panel-menu-items.c
+       gnome-panel/panel-menu-items.h
+       gnome-panel/panel-modules.c
+       gnome-panel/panel-modules.h
+       gnome-panel/panel-multiscreen.c
+       gnome-panel/panel-multiscreen.h
+       gnome-panel/panel-object-loader.c
+       gnome-panel/panel-object-loader.h
+       gnome-panel/panel-properties-dialog.c
+       gnome-panel/panel-properties-dialog.h
+       gnome-panel/panel-recent.c
+       gnome-panel/panel-recent.h
+       gnome-panel/panel-run-dialog.c
+       gnome-panel/panel-run-dialog.h
+       gnome-panel/panel-schemas.h
+       gnome-panel/panel-session.c
+       gnome-panel/panel-session.h
+       gnome-panel/panel-struts.c
+       gnome-panel/panel-struts.h
+       gnome-panel/panel-test-applets.c
+       gnome-panel/panel-toplevel.c
+       gnome-panel/panel-toplevel.h
+       gnome-panel/panel-types.h
+       gnome-panel/panel-util.c
+       gnome-panel/panel-util.h
+       gnome-panel/panel-widget.c
+       gnome-panel/panel-widget.h
+       gnome-panel/panel-xutils.c
+       gnome-panel/panel-xutils.h
+       gnome-panel/panel.c
+       gnome-panel/panel.h
+       gnome-panel/xstuff.c
+       gnome-panel/xstuff.h
+       libpanel-applet/panel-applet-bindings.c
+       libpanel-applet/panel-applet-bindings.h
+       libpanel-applet/panel-applet-factory.c
+       libpanel-applet/panel-applet-factory.h
+       libpanel-applet/panel-applet.c
+       libpanel-applet/panel-applet.h
+       libpanel-applet/test-dbus-applet.c
+)
+
+set(TEST_FILES gnome-panel/test.c
+               gnome-panel/test.h)
+
+add_library(libpanel-util STATIC ${LIBPANEL_UTIL_FILES})
+add_executable(applet ${APPLET_FILES})
+add_executable(gnome_panel ${GNOME_PANEL_FILES})
+target_link_libraries(gnome_panel ${GTK3_LIBRARIES} ${LIBECAL_LIBRARIES} ${CAIRO_LIBRARIES} ${X11_LIBRARIES} 
${GMENU_LIBRARIES} ${libpanel-util})
\ No newline at end of file


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]