diff options
author | Laurent Montel <montel@kde.org> | 2006-09-20 12:52:28 +0000 |
---|---|---|
committer | Laurent Montel <montel@kde.org> | 2006-09-20 12:52:28 +0000 |
commit | e3cf99c87a6109186daabba3640d67a08f4fab02 (patch) | |
tree | afb7a1391ed194dd9e587e0fa3dd83ff649a7ac6 /ConfigureChecks.cmake | |
parent | dae3f838201a2be93f5bff2fdb3c9f9aabc3b747 (diff) |
Add cmake support
All compile need to test now
git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/kdesupport/taglib@586714 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r-- | ConfigureChecks.cmake | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake new file mode 100644 index 00000000..5a8d9f1d --- /dev/null +++ b/ConfigureChecks.cmake @@ -0,0 +1,20 @@ +# NOTE: only add something here if it is really needed by all of kdelibs. +# Otherwise please prefer adding to the relevant config-foo.h.cmake file, +# and the CMakeLists.txt that generates it (or a separate ConfigureChecks.make file if you prefer) +# to minimize recompilations and increase modularity. + +include(CheckIncludeFile) +include(CheckIncludeFiles) +include(CheckSymbolExists) +include(CheckFunctionExists) +include(CheckLibraryExists) +include(CheckTypeSize) +include(CheckCXXSourceCompiles) + +#check for libz using the cmake supplied FindZLIB.cmake + +IF(ZLIB_FOUND) + SET(HAVE_LIBZ 1) +ELSE(ZLIB_FOUND) + SET(HAVE_LIBZ 0) +ENDIF(ZLIB_FOUND) |