mirror of
https://invent.kde.org/system/dolphin
synced 2024-10-05 16:19:10 +00:00
5252c12db4
svn path=/trunk/playground/utils/dolphin/; revision=606622
48 lines
1.8 KiB
CMake
48 lines
1.8 KiB
CMake
include(CheckIncludeFile)
|
|
include(CheckIncludeFiles)
|
|
include(CheckSymbolExists)
|
|
include(CheckFunctionExists)
|
|
include(CheckLibraryExists)
|
|
include(CheckPrototypeExists)
|
|
include(CheckTypeSize)
|
|
include(MacroBoolTo01)
|
|
# The FindKDE4.cmake module sets _KDE4_PLATFORM_DEFINITIONS with
|
|
# definitions like _GNU_SOURCE that are needed on each platform.
|
|
set(CMAKE_REQUIRED_DEFINITIONS ${_KDE4_PLATFORM_DEFINITIONS})
|
|
|
|
macro_bool_to_01(KDE4_XMMS HAVE_XMMS)
|
|
|
|
#now check for dlfcn.h using the cmake supplied CHECK_include_FILE() macro
|
|
# If definitions like -D_GNU_SOURCE are needed for these checks they
|
|
# should be added to _KDE4_PLATFORM_DEFINITIONS when it is originally
|
|
# defined outside this file. Here we include these definitions in
|
|
# CMAKE_REQUIRED_DEFINITIONS so they will be included in the build of
|
|
# checks below.
|
|
set(CMAKE_REQUIRED_DEFINITIONS ${_KDE4_PLATFORM_DEFINITIONS})
|
|
if (WIN32)
|
|
set(CMAKE_REQUIRED_LIBRARIES ${KDEWIN32_LIBRARIES} )
|
|
set(CMAKE_REQUIRED_INCLUDES ${KDEWIN32_INCLUDES} )
|
|
endif (WIN32)
|
|
|
|
check_include_files(stdint.h HAVE_STDINT_H)
|
|
check_include_files(sys/types.h HAVE_SYS_TYPES_H)
|
|
check_include_files(ieeefp.h HAVE_IEEEFP_H)
|
|
check_include_files(mntent.h HAVE_MNTENT_H)
|
|
check_include_files(sys/loadavg.h HAVE_SYS_LOADAVG_H)
|
|
check_include_files(sys/mnttab.h HAVE_SYS_MNTTAB_H)
|
|
check_include_files("sys/param.h;sys/mount.h" HAVE_SYS_MOUNT_H)
|
|
check_include_files(sys/statfs.h HAVE_SYS_STATFS_H)
|
|
check_include_files(sys/statvfs.h HAVE_SYS_STATVFS_H)
|
|
check_include_files(sys/ucred.h HAVE_SYS_UCRED_H)
|
|
check_include_files(sys/vfs.h HAVE_SYS_VFS_H)
|
|
|
|
check_function_exists(isinf HAVE_FUNC_ISINF)
|
|
|
|
check_type_size("int" SIZEOF_INT)
|
|
check_type_size("char *" SIZEOF_CHAR_P)
|
|
check_type_size("long" SIZEOF_LONG)
|
|
check_type_size("short" SIZEOF_SHORT)
|
|
check_type_size("size_t" SIZEOF_SIZE_T)
|
|
check_type_size("unsigned long" SIZEOF_UNSIGNED_LONG)
|
|
|