File: KigConfigureChecks.cmake

package info (click to toggle)
kig 4%3A4.8.4-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 5,180 kB
  • sloc: cpp: 43,226; python: 480; xml: 400; sh: 39; perl: 23; makefile: 2
file content (29 lines) | stat: -rw-r--r-- 647 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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)

macro_optional_find_package(BoostPython)

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

macro_log_feature(
   BOOST_PYTHON_FOUND
   "Boost.Python"
   "Kig can optionally use Boost.Python for Python scripting"
   "http://www.boost.org/"
   FALSE
   "1.31"
   ""
)