File: Findfftw3.cmake

package info (click to toggle)
obdgpslogger 0.16-1.3
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 5,160 kB
  • ctags: 7,498
  • sloc: ansic: 73,206; cpp: 2,055; php: 407; sh: 51; makefile: 4
file content (40 lines) | stat: -rw-r--r-- 806 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
30
31
32
33
34
35
36
37
38
39
40
SET(FFTW3_FOUND "NO")

SET(FFTW3_PREFIX "/usr/local/fftw3/" CACHE STRING
	"libftdi is installed in this prefix (if non-standard)")

SET(FFTW3_SEARCH_PATHS
	${FFTW3_PREFIX}/
	/sw/
	/usr/
	/usr/local/
	C:/msys/1.0/local
)

FIND_PATH(FFTW3_INCLUDE_DIR
	NAMES fftw3.h
	PATH_SUFFIXES /include/ .
	PATHS ${FFTW3_SEARCH_PATHS}
)

FIND_LIBRARY(FFTW3_LIBRARY
	NAMES fftw3
	PATH_SUFFIXES /lib/ .
	PATHS ${FFTW3_SEARCH_PATHS}
)


IF(FFTW3_LIBRARY AND FFTW3_INCLUDE_DIR)
  SET(FFTW3_FOUND "YES")
ENDIF(FFTW3_LIBRARY AND FFTW3_INCLUDE_DIR)

IF(FFTW3_FOUND)
  IF(NOT FFTW3_FIND_QUIETLY)
    MESSAGE(STATUS "Found FFTW3: ${FFTW3_LIBRARY}")
  ENDIF(NOT FFTW3_FIND_QUIETLY)
ELSE(FFTW3_FOUND)
  IF(FFTW3_FIND_REQUIRED)
    MESSAGE(FATAL_ERROR "Could not find FFTW3 Library")
  ENDIF(FFTW3_FIND_REQUIRED)
ENDIF(FFTW3_FOUND)