summaryrefslogtreecommitdiffstats
path: root/kpdf/xpdf/goo
diff options
context:
space:
mode:
Diffstat (limited to 'kpdf/xpdf/goo')
-rw-r--r--kpdf/xpdf/goo/CMakeLists.txt26
-rw-r--r--kpdf/xpdf/goo/ConfigureChecks.cmake24
2 files changed, 50 insertions, 0 deletions
diff --git a/kpdf/xpdf/goo/CMakeLists.txt b/kpdf/xpdf/goo/CMakeLists.txt
new file mode 100644
index 00000000..5a5a0ac8
--- /dev/null
+++ b/kpdf/xpdf/goo/CMakeLists.txt
@@ -0,0 +1,26 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include( ConfigureChecks.cmake )
+
+include_directories(
+ ${CMAKE_CURRENT_SOURCE_DIR}/..
+ ${CMAKE_BINARY_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+
+##### goo (static) ##############################
+
+tde_add_library( goo STATIC_PIC
+ SOURCES
+ GHash.cc GList.cc GString.cc gfile.cc gmem.cc gmempp.cc
+)
diff --git a/kpdf/xpdf/goo/ConfigureChecks.cmake b/kpdf/xpdf/goo/ConfigureChecks.cmake
new file mode 100644
index 00000000..ece2791b
--- /dev/null
+++ b/kpdf/xpdf/goo/ConfigureChecks.cmake
@@ -0,0 +1,24 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+check_include_file( "dirent.h" HAVE_DIRENT_H )
+if( NOT HAVE_DIRENT_H )
+ check_include_file( "sys/ndir.h" HAVE_SYS_NDIR_H )
+ if( NOT HAVE_SYS_NDIR_H )
+ check_include_file( "sys/dir.h" HAVE_SYS_DIR_H )
+ if( NOT HAVE_SYS_DIR_H )
+ check_include_file( "ndir.h" HAVE_NDIR_H )
+ if( NOT HAVE_NDIR_H )
+ tde_message_fatal( "dirent.h is missing, this should not happen." )
+ endif( )
+ endif( )
+ endif( )
+endif( )