diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2008-09-17 08:44:51 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2008-09-17 08:44:51 +0000 |
commit | 1c299d5a5c493986ca4a19bd55a69281dabada86 (patch) | |
tree | dae18913a2261a157ba32308ef804050e1232542 /libs/taglib/ConfigureChecks.cmake | |
parent | 8e9a83dfdc233898e7c470667c7c9b797c83fe8b (diff) |
merge Sakari's (sbergen) branch back into 3.0, removing libsndfile and adding taglib
git-svn-id: svn://localhost/ardour2/branches/3.0@3736 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/taglib/ConfigureChecks.cmake')
-rw-r--r-- | libs/taglib/ConfigureChecks.cmake | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/libs/taglib/ConfigureChecks.cmake b/libs/taglib/ConfigureChecks.cmake new file mode 100644 index 0000000000..033dab1699 --- /dev/null +++ b/libs/taglib/ConfigureChecks.cmake @@ -0,0 +1,28 @@ +# 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 +FIND_PACKAGE(ZLIB) + +IF(ZLIB_FOUND) + SET(HAVE_ZLIB 1) +ELSE(ZLIB_FOUND) + SET(HAVE_ZLIB 0) +ENDIF(ZLIB_FOUND) + +SET(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules) +FIND_PACKAGE(CppUnit) +IF (NOT CPPUNIT_FOUND AND BUILD_TESTS) + MESSAGE(STATUS "CppUnit not found, disabling tests.") + SET(BUILD_TESTS OFF) +ENDIF(NOT CPPUNIT_FOUND AND BUILD_TESTS) |