Compile++
[kdeaccessibility.git] / ConfigureChecks.cmake
blobfdda2c2a05b18f0510d6778556e2110ce9313cf6
1 include(CheckIncludeFile)
2 include(CheckIncludeFiles)
3 include(CheckSymbolExists)
4 include(CheckFunctionExists)
5 include(CheckLibraryExists)
6 include(CheckPrototypeExists)
7 include(CheckTypeSize)
8 include(MacroBoolTo01)
10 # The FindKDE4.cmake module sets _KDE4_PLATFORM_DEFINITIONS with
11 # definitions like _GNU_SOURCE that are needed on each platform.
12 set(CMAKE_REQUIRED_DEFINITIONS ${_KDE4_PLATFORM_DEFINITIONS})
14 #now check for dlfcn.h using the cmake supplied CHECK_include_FILE() macro
15 # If definitions like -D_GNU_SOURCE are needed for these checks they
16 # should be added to _KDE4_PLATFORM_DEFINITIONS when it is originally
17 # defined outside this file.  Here we include these definitions in
18 # CMAKE_REQUIRED_DEFINITIONS so they will be included in the build of
19 # checks below.
20 set(CMAKE_REQUIRED_DEFINITIONS ${_KDE4_PLATFORM_DEFINITIONS})
21 if (WIN32)
22    set(CMAKE_REQUIRED_LIBRARIES ${KDEWIN32_LIBRARIES} )
23    set(CMAKE_REQUIRED_INCLUDES  ${KDEWIN32_INCLUDES} )
24 endif (WIN32)
26 check_include_files(alsa/asoundlib.h HAVE_ALSA_ASOUNDLIB_H)
27 check_include_files(sys/asoundlib.h HAVE_SYS_ASOUNDLIB_H)
28 check_include_files(sys/time.h HAVE_SYS_TIME_H)
29 check_include_files("sys/time.h;time.h" TIME_WITH_SYS_TIME)