File: FindMath.cmake

package info (click to toggle)
hatari 2.0.0%2Bdfsg-3
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 12,112 kB
  • ctags: 16,421
  • sloc: ansic: 146,916; python: 5,460; objc: 1,856; sh: 945; asm: 757; makefile: 152; xml: 32
file content (15 lines) | stat: -rw-r--r-- 385 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

if(MATH_INCLUDE_DIR)
  # Already in cache, be silent
  set(MATH_FIND_QUIETLY TRUE)
endif(MATH_INCLUDE_DIR)

find_path(MATH_INCLUDE_DIR math.h)

find_library(MATH_LIBRARY NAMES m)

include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(MATH DEFAULT_MSG
                                  MATH_LIBRARY MATH_INCLUDE_DIR)

mark_as_advanced(MATH_LIBRARY MATH_INCLUDE_DIR)