summaryrefslogtreecommitdiff
path: root/plugins/kde/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/kde/CMakeLists.txt')
-rw-r--r--plugins/kde/CMakeLists.txt22
1 files changed, 22 insertions, 0 deletions
diff --git a/plugins/kde/CMakeLists.txt b/plugins/kde/CMakeLists.txt
new file mode 100644
index 0000000..63935c3
--- /dev/null
+++ b/plugins/kde/CMakeLists.txt
@@ -0,0 +1,22 @@
+find_package (Compiz REQUIRED)
+find_package (KDE4 4.2)
+
+include (CompizPlugin)
+
+if (KDE4_FOUND)
+ include(KDE4Defaults)
+ include(MacroLibrary)
+
+ string (REGEX REPLACE "-fvisibility=hidden" "" CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS})
+ string (REGEX REPLACE "-Wl,--no-undefined" "" CMAKE_SHARED_LINKER_FLAGS ${CMAKE_SHARED_LINKER_FLAGS})
+
+ add_definitions(${QT_DEFINITIONS} ${KDE4_DEFINITIONS})
+
+ QT4_AUTOMOC (src/dispatcher.cpp)
+
+ compiz_plugin (kde LIBRARIES ${KDE4_KDECORE_LIBS} ${KDE4_KDEUI_LIBS}
+ LIBDIRS ${KDE4_LIB_DIR}
+ INCDIRS ${KDE4_INCLUDES}
+ )
+
+endif () \ No newline at end of file