File: FindFFTW.cmake

package info (click to toggle)
openmm 7.5.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 106,720 kB
  • sloc: xml: 281,755; cpp: 214,835; python: 30,194; ansic: 5,638; lisp: 3,626; sh: 262; f90: 233; makefile: 207; csh: 19
file content (24 lines) | stat: -rw-r--r-- 804 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
# - Find FFTW
# Find the native FFTW includes and library
#
#  FFTW_INCLUDES        - where to find fftw3.h
#  FFTW_LIBRARY         - the main FFTW library.
#  FFTW_THREADS_LIBRARY - the FFTW multithreading support library.
#  FFTW_FOUND           - True if FFTW found.

if (FFTW_INCLUDES)
  # Already in cache, be silent
  set (FFTW_FIND_QUIETLY TRUE)
endif (FFTW_INCLUDES)

find_path (FFTW_INCLUDES fftw3.h)

find_library (FFTW_LIBRARY NAMES fftw3f)
find_library (FFTW_THREADS_LIBRARY NAMES fftw3f_threads)

# handle the QUIETLY and REQUIRED arguments and set FFTW_FOUND to TRUE if
# all listed variables are TRUE
include (FindPackageHandleStandardArgs)
find_package_handle_standard_args (FFTW DEFAULT_MSG FFTW_LIBRARY FFTW_INCLUDES)

mark_as_advanced (FFTW_LIBRARY FFTW_THREADS_LIBRARY FFTW_INCLUDES)