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