Преглед на файлове

[kdelibs/kglib] added cmake support

git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1217534 283d02a7-25f6-0310-bc7c-ecb5cbfe19
samelian преди 8 години
родител
ревизия
0d772cdcb1
променени са 2 файла, в които са добавени 52 реда и са изтрити 0 реда
  1. 15
    0
      CMakeLists.txt
  2. 37
    0
      kglib/CMakeLists.txt

+ 15
- 0
CMakeLists.txt Целия файл

@@ -565,6 +565,20 @@ if( NOT LIBXSLT_FOUND )
565 565
 endif( NOT LIBXSLT_FOUND )
566 566
 
567 567
 
568
+##### check for glib-2.0 & friends ##############
569
+
570
+pkg_search_module( GLIB2 glib-2.0 )
571
+if( NOT GLIB2_FOUND )
572
+  tde_message_fatal( "glib-2.0 are required, but not found on your system" )
573
+endif( )
574
+
575
+pkg_search_module( GOBJECT2 gobject-2.0 )
576
+if( NOT GLIB2_FOUND )
577
+  tde_message_fatal( "gobject-2.0 are required, but not found on your system" )
578
+endif( )
579
+
580
+
581
+
568 582
 ##### check for Qt3 #############################
569 583
 
570 584
 # find_package( Qt3 )
@@ -767,6 +781,7 @@ install( FILES
767 781
 
768 782
 add_subdirectory( dcop )
769 783
 add_subdirectory( libltdl )
784
+add_subdirectory( kglib )
770 785
 add_subdirectory( kdefx )
771 786
 add_subdirectory( kdecore )
772 787
 add_subdirectory( kunittest )

+ 37
- 0
kglib/CMakeLists.txt Целия файл

@@ -0,0 +1,37 @@
1
+#################################################
2
+#
3
+#  (C) 2010-2011 Serghei Amelian
4
+#  serghei (DOT) amelian (AT) gmail.com
5
+#
6
+#  Improvements and feedback are welcome
7
+#
8
+#  This file is released under GPL >= 2
9
+#
10
+#################################################
11
+
12
+include_directories(
13
+  ${TQT_INCLUDE_DIRS}
14
+  ${GLIB2_INCLUDE_DIRS}
15
+)
16
+
17
+link_directories(
18
+  ${TQT_LIBRARY_DIRS}
19
+)
20
+
21
+
22
+##### headers ###################################
23
+
24
+install( FILES
25
+    TGlibEventLoop.h
26
+  DESTINATION ${INCLUDE_INSTALL_DIR} )
27
+
28
+
29
+
30
+#### kglib ######################################
31
+
32
+tde_add_library( kglib SHARED
33
+  SOURCES TGlibEventLoop.cpp
34
+  VERSION 0.0.0
35
+  LINK ${TQT_LIBRARIES} ${GLIB2_LIBRARIES} ${GOBJECT2_LIBRARIES}
36
+  DESTINATION ${LIB_INSTALL_DIR}
37
+)

Loading…
Отказ
Запис