summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt15
-rw-r--r--kglib/CMakeLists.txt37
2 files changed, 52 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 33eb77959..6a931058c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -565,6 +565,20 @@ if( NOT LIBXSLT_FOUND )
endif( NOT LIBXSLT_FOUND )
+##### check for glib-2.0 & friends ##############
+
+pkg_search_module( GLIB2 glib-2.0 )
+if( NOT GLIB2_FOUND )
+ tde_message_fatal( "glib-2.0 are required, but not found on your system" )
+endif( )
+
+pkg_search_module( GOBJECT2 gobject-2.0 )
+if( NOT GLIB2_FOUND )
+ tde_message_fatal( "gobject-2.0 are required, but not found on your system" )
+endif( )
+
+
+
##### check for Qt3 #############################
# find_package( Qt3 )
@@ -767,6 +781,7 @@ install( FILES
add_subdirectory( dcop )
add_subdirectory( libltdl )
+add_subdirectory( kglib )
add_subdirectory( kdefx )
add_subdirectory( kdecore )
add_subdirectory( kunittest )
diff --git a/kglib/CMakeLists.txt b/kglib/CMakeLists.txt
new file mode 100644
index 000000000..293a09e75
--- /dev/null
+++ b/kglib/CMakeLists.txt
@@ -0,0 +1,37 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${TQT_INCLUDE_DIRS}
+ ${GLIB2_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### headers ###################################
+
+install( FILES
+ TGlibEventLoop.h
+ DESTINATION ${INCLUDE_INSTALL_DIR} )
+
+
+
+#### kglib ######################################
+
+tde_add_library( kglib SHARED
+ SOURCES TGlibEventLoop.cpp
+ VERSION 0.0.0
+ LINK ${TQT_LIBRARIES} ${GLIB2_LIBRARIES} ${GOBJECT2_LIBRARIES}
+ DESTINATION ${LIB_INSTALL_DIR}
+)