summaryrefslogtreecommitdiff
path: root/kde
diff options
context:
space:
mode:
authorDennis Kasprzyk <onestone@compiz-fusion.org>2008-10-06 15:58:52 +0200
committerDennis kasprzyk <onestone@compiz-fusion.org>2008-10-06 19:11:30 +0200
commitf235e2a766f344f426c6054b7e69a42b41c79e3b (patch)
treeda94e0502965cc7cf1a8d3c9f9eca543a682f742 /kde
parent92765a6911bc9b442bc670fd6e2370454814a34d (diff)
downloadzcomp-f235e2a766f344f426c6054b7e69a42b41c79e3b.tar.gz
zcomp-f235e2a766f344f426c6054b7e69a42b41c79e3b.tar.bz2
Initial version of CMake build system.
Diffstat (limited to 'kde')
-rw-r--r--kde/CMakeLists.txt1
-rw-r--r--kde/window-decorator-kde4/CMakeLists.txt67
2 files changed, 68 insertions, 0 deletions
diff --git a/kde/CMakeLists.txt b/kde/CMakeLists.txt
new file mode 100644
index 0000000..0f839d9
--- /dev/null
+++ b/kde/CMakeLists.txt
@@ -0,0 +1 @@
+add_subdirectory (window-decorator-kde4) \ No newline at end of file
diff --git a/kde/window-decorator-kde4/CMakeLists.txt b/kde/window-decorator-kde4/CMakeLists.txt
new file mode 100644
index 0000000..c998358
--- /dev/null
+++ b/kde/window-decorator-kde4/CMakeLists.txt
@@ -0,0 +1,67 @@
+project (kde4-window-decorator)
+
+find_package(KDE4)
+
+if (KDE4_FOUND)
+
+ include(KDE4Defaults)
+ include(FindPkgConfig)
+ include(MacroLibrary)
+ include (FindPlasma)
+
+ if (PLASMA_FOUND)
+
+ add_definitions(${QT_DEFINITIONS} ${KDE4_DEFINITIONS})
+
+ qt4_add_dbus_adaptor (kwd4_SRCS org.kde.KWin.xml decorator.h KWD::Decorator kwinadaptor)
+
+
+ pkg_check_modules (KWD4 REQUIRED xdamage xrender xcomposite)
+
+ link_directories(
+ ${KWD4_LIBRARY_DIRS}
+ )
+
+ include_directories (
+ ${compiz_SOURCE_DIR}/include
+ ${KWD4_INCLUDE_DIRS}
+ ${KDE4_INCLUDES}
+ ${KDE4_INCLUDE_DIR}
+ ${PLASMA_INCLUDE_DIR}
+ ${QT_INCLUDES}
+ )
+
+ set (kwd4_SRCS
+ main.cpp
+ utils.cpp
+ decorator.cpp
+ window.cpp
+ options.cpp
+ kdecoration_plugins.cpp
+ switcher.cpp
+ ${kwd4_SRCS}
+ )
+
+ kde4_add_executable (
+ kde4-window-decorator
+ ${kwd4_SRCS}
+ )
+
+ target_link_libraries (
+ kde4-window-decorator
+ decoration
+ ${KWD4_LIBRARIES}
+ ${PLASMA_LIBS}
+ ${KDE4_KDECORE_LIBS}
+ ${KDE4_KDEUI_LIBS}
+ kdecorations
+ )
+
+ install (
+ TARGETS kde4-window-decorator
+ DESTINATION ${exec_prefix}
+ )
+
+ endif (PLASMA_FOUND)
+
+endif (KDE4_FOUND) \ No newline at end of file