forked from fpeder/XKin
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFindfftw.cmake
More file actions
30 lines (25 loc) · 725 Bytes
/
Findfftw.cmake
File metadata and controls
30 lines (25 loc) · 725 Bytes
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
#
# FFTW_FOUND
# FFTW_INCLUDE_DIR
# FFTW_LIBRARIES
#
find_path( FFTW_INCLUDE_DIR fftw3.h
PATHS /usr /usr/local /sw /opt/local
PATH_SUFFIEXS include
DOC "The dicrectory where fftw3.h resides"
)
find_library( FFTW_LIBRARIES
NAMES fftw3
PATHS /usr /usr/local /sw /opt/local
PATH_SUFFIEXS lib lib64
DOC "The fftw3 library"
)
include( FindPackageHandleStandardArgs )
find_package_handle_standard_args( fftw DEFAULT_MSG FFTW_LIBRARIES FFTW_INCLUDE_DIR )
mark_as_advanced( FFTW_LIBRARIES FFTW_INCLUDE_DIR )
if( FFTW_FOUND )
include_directories( ${FFTW_INCLUDE_DIR} )
message( STATUS "fftw3 found (include: ${FFTW_INCLUDE_DIR},
lib: ${FFTW_LIBRARIES})")
endif( FFTW_FOUND )
mark_as_advanced( FFTW_FOUND )