File: FindMath.cmake

package info (click to toggle)
hatari 2.6.1%2Bdfsg-2
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 11,236 kB
  • sloc: ansic: 167,249; cpp: 8,685; python: 6,324; objc: 1,888; asm: 1,754; sh: 1,688; javascript: 149; makefile: 87; xml: 32
file content (15 lines) | stat: -rw-r--r-- 385 bytes parent folder | download | duplicates (7)
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)