File: KigConfigureChecks.cmake

package info (click to toggle)
kig 4%3A16.08.3-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 5,380 kB
  • ctags: 5,093
  • sloc: cpp: 44,261; xml: 503; python: 484; sh: 48; perl: 23; makefile: 2
file content (19 lines) | stat: -rw-r--r-- 454 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
kde_enable_exceptions()
include(CheckIncludeFiles)
include(CheckFunctionExists)

check_include_files(ieeefp.h HAVE_IEEEFP_H)

set(CMAKE_REQUIRED_INCLUDES "math.h")
set(CMAKE_REQUIRED_LIBRARIES m)
check_function_exists(trunc      HAVE_TRUNC)
set(CMAKE_REQUIRED_INCLUDES)
set(CMAKE_REQUIRED_LIBRARIES)

# at the end, output the configuration
configure_file(
   ${CMAKE_CURRENT_SOURCE_DIR}/config-kig.h.cmake
   ${CMAKE_CURRENT_BINARY_DIR}/config-kig.h
)