Fix install files
[kdeartwork.git] / ConfigureChecks.cmake
blobd069b08a49e80bd2e5e2f1da17476d903d59f623
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 #check for libz using the cmake supplied FindZLIB.cmake
15 #now check for dlfcn.h using the cmake supplied CHECK_include_FILE() macro
16 # If definitions like -D_GNU_SOURCE are needed for these checks they
17 # should be added to _KDE4_PLATFORM_DEFINITIONS when it is originally
18 # defined outside this file.  Here we include these definitions in
19 # CMAKE_REQUIRED_DEFINITIONS so they will be included in the build of
20 # checks below.
21 set(CMAKE_REQUIRED_DEFINITIONS ${_KDE4_PLATFORM_DEFINITIONS})
22 if (WIN32)
23    set(CMAKE_REQUIRED_LIBRARIES ${KDEWIN32_LIBRARIES} )
24    set(CMAKE_REQUIRED_INCLUDES  ${KDEWIN32_INCLUDES} )
25 endif (WIN32)
27 check_include_files(memory.h HAVE_MEMORY_H)