summaryrefslogtreecommitdiffstats
path: root/ConfigureChecks.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r--ConfigureChecks.cmake27
1 files changed, 27 insertions, 0 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
new file mode 100644
index 00000000..c708db86
--- /dev/null
+++ b/ConfigureChecks.cmake
@@ -0,0 +1,27 @@
+INCLUDE(CheckIncludeFiles)
+
+#check for libz using the cmake supplied FindZLIB.cmake
+INCLUDE(FindZLIB)
+
+IF(ZLIB_FOUND)
+ SET(HAVE_LIBZ 1)
+ELSE(ZLIB_FOUND)
+ SET(HAVE_LIBZ 0)
+ENDIF(ZLIB_FOUND)
+
+#check for png
+INCLUDE(FindPNG)
+IF(PNG_FOUND)
+ SET(HAVE_LIBPNG 1)
+ELSE(PNG_FOUND)
+ SET(HAVE_LIBPNG 0)
+ENDIF(PNG_FOUND)
+
+#now check for dlfcn.h using the cmake supplied CHECK_INCLUDE_FILE() macro
+
+CHECK_INCLUDE_FILES(dlfcn.h HAVE_DLFCN_H)
+
+SET(CONFIG_QT_DOCDIR "\"/usr/lib/qt/doc/html/\"")
+SET(CONFIG_KDELIBS_DOXYDIR "\"/tmp/\"")
+
+CONFIGURE_FILE(${CMAKE_SOURCE_DIR}/config.h.cmake ${CMAKE_SOURCE_DIR}/config.h)