1
include(CheckIncludeFiles)
3
include(CheckStructMember)
6
# The FindKDE4.cmake module sets _KDE4_PLATFORM_DEFINITIONS with
7
# definitions like _GNU_SOURCE that are needed on each platform.
8
set(CMAKE_REQUIRED_DEFINITIONS ${_KDE4_PLATFORM_DEFINITIONS})
10
macro_bool_to_01(OGGVORBIS_FOUND HAVE_VORBIS)
12
#now check for dlfcn.h using the cmake supplied CHECK_include_FILE() macro
13
# If definitions like -D_GNU_SOURCE are needed for these checks they
14
# should be added to _KDE4_PLATFORM_DEFINITIONS when it is originally
15
# defined outside this file. Here we include these definitions in
16
# CMAKE_REQUIRED_DEFINITIONS so they will be included in the build of
18
set(CMAKE_REQUIRED_DEFINITIONS ${_KDE4_PLATFORM_DEFINITIONS})
20
set(CMAKE_REQUIRED_LIBRARIES ${KDEWIN32_LIBRARIES} )
21
set(CMAKE_REQUIRED_INCLUDES ${KDEWIN32_INCLUDES} )
24
check_include_files(machine/endian.h HAVE_MACHINE_ENDIAN_H)
25
# Linux has <endian.h>, FreeBSD has <sys/endian.h> and Solaris has neither.
26
check_include_files(endian.h HAVE_ENDIAN_H)
27
check_include_files(sys/endian.h HAVE_SYS_ENDIAN_H)
28
check_include_files(unistd.h HAVE_UNISTD_H)