aboutsummaryrefslogtreecommitdiffstats
path: root/ConfigureChecks.cmake
blob: e4a6d1fac59c91dafb29d9b30cafffd17b397ec2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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()
	set(HAVE_ZLIB 0)
endif()

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()