diff options
author | Dennis Kasprzyk <onestone@compiz-fusion.org> | 2008-10-06 15:58:52 +0200 |
---|---|---|
committer | Dennis kasprzyk <onestone@compiz-fusion.org> | 2008-10-06 19:11:30 +0200 |
commit | f235e2a766f344f426c6054b7e69a42b41c79e3b (patch) | |
tree | da94e0502965cc7cf1a8d3c9f9eca543a682f742 /gtk | |
parent | 92765a6911bc9b442bc670fd6e2370454814a34d (diff) | |
download | zcomp-f235e2a766f344f426c6054b7e69a42b41c79e3b.tar.gz zcomp-f235e2a766f344f426c6054b7e69a42b41c79e3b.tar.bz2 |
Initial version of CMake build system.
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/CMakeLists.txt | 3 | ||||
-rw-r--r-- | gtk/gnome/CMakeLists.txt | 67 | ||||
-rw-r--r-- | gtk/window-decorator/CMakeLists.txt | 61 |
3 files changed, 131 insertions, 0 deletions
diff --git a/gtk/CMakeLists.txt b/gtk/CMakeLists.txt new file mode 100644 index 0000000..3d2bd67 --- /dev/null +++ b/gtk/CMakeLists.txt @@ -0,0 +1,3 @@ + +add_subdirectory (window-decorator) +add_subdirectory (gnome) diff --git a/gtk/gnome/CMakeLists.txt b/gtk/gnome/CMakeLists.txt new file mode 100644 index 0000000..c2b0559 --- /dev/null +++ b/gtk/gnome/CMakeLists.txt @@ -0,0 +1,67 @@ + +if (USE_GNOME) + + include_directories ( + ${compiz_BINARY_DIR} + ${GNOME_WINDOW_SETTINGS_INCLUDE_DIRS} + ) + + add_definitions ( + -DHAVE_CONFIG_H + -DMETACITY_THEME_DIR=\\\"${windowsettingsdatadir}/themes\\\" + ) + + link_directories ( + ${COMPIZ_LINK_DIRS} + ) + + set (desktop_file ${CMAKE_CURRENT_BINARY_DIR}/compiz.desktop) + translate_desktop_file ( + ${CMAKE_CURRENT_SOURCE_DIR}/compiz.desktop.in + ${desktop_file} + ) + install ( + FILES ${desktop_file} + DESTINATION ${windowsettingsdatadir}/gnome/wm-properties + ) + + if (USE_GNOME_KEYBINDINGS) + translate_xml ( + ${CMAKE_CURRENT_SOURCE_DIR}/50-compiz-desktop-key.xml.in + ${CMAKE_CURRENT_BINARY_DIR}/50-compiz-desktop-key.xml + ) + translate_xml ( + ${CMAKE_CURRENT_SOURCE_DIR}/50-compiz-key.xml.in + ${CMAKE_CURRENT_BINARY_DIR}/50-compiz-key.xml + ) + set (key_xml + ${CMAKE_CURRENT_BINARY_DIR}/50-compiz-desktop-key.xml + ${CMAKE_CURRENT_BINARY_DIR}/50-compiz-key.xml + ) + install ( + FILES ${key_xml} + DESTINATION ${keybindingsdir} + ) + endif (USE_GNOME_KEYBINDINGS) + + add_library (gnome-compiz MODULE + compiz-window-manager.c + compiz-window-manager.h + ${key_xml} + ${desktop_file} + ) + + set_target_properties (gnome-compiz + PROPERTIES OUTPUT_NAME compiz + ) + + target_link_libraries ( + gnome-compiz ${GNOME_WINDOW_SETTINGS_LIBRARIES} + ) + + install ( + TARGETS gnome-compiz + DESTINATION ${windowsettingslibdir}/window-manager-settings + ) + +endif (USE_GNOME) diff --git a/gtk/window-decorator/CMakeLists.txt b/gtk/window-decorator/CMakeLists.txt new file mode 100644 index 0000000..9169f66 --- /dev/null +++ b/gtk/window-decorator/CMakeLists.txt @@ -0,0 +1,61 @@ +if (USE_GTK) + + include_directories ( + ${compiz_SOURCE_DIR}/include + ${compiz_BINARY_DIR} + ${GTK_WINDOW_DECORATOR_INCLUDE_DIRS} + ${METACITY_INCLUDE_DIRS} + ${GCONF_INCLUDE_DIRS} + ${DBUS_GLIB_INCLUDE_DIRS} + ) + + add_definitions ( + -DHAVE_CONFIG_H + -DALL_LINGUAS=\"${ALL_LINGUAS}\" + -DLOCALEDIR=\\\"${datadir}/locale\\\" + ) + + link_directories ( + ${COMPIZ_LINK_DIRS} + ) + + if (USE_GCONF) + set (gwd_schema ${CMAKE_CURRENT_BINARY_DIR}/gwd.schemas) + translate_xml ( + ${CMAKE_CURRENT_SOURCE_DIR}/gwd.schemas.in + ${gwd_schema} + ) + install_gconf_schema (${CMAKE_CURRENT_BINARY_DIR}/gwd.schemas) + endif (USE_GCONF) + + add_executable (gtk-window-decorator + gtk-window-decorator.c + ${gwd_schema} + ) + + add_dependencies (gtk-window-decorator decoration) + + if (USE_METACITY) + set (metacitylibs ${METACITY_LIBRARIES}) + endif (USE_METACITY) + + + target_link_libraries ( + gtk-window-decorator + decoration + ${GTK_WINDOW_DECORATOR_LIBRARIES} + ${GCONF_LIBRARIES} + ${DBUS_GLIB_LIBRARIES} + ${metacitylibs} + ) + + install ( + TARGETS gtk-window-decorator + DESTINATION ${exec_prefix} + ) + + +endif (USE_GTK) + + + |