Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Raptor Engineering Public Development
dsview
Commits
7665adeb
Commit
7665adeb
authored
8 years ago
by
DreamSourceLab
Browse files
Options
Download
Email Patches
Plain Diff
Fix compile issue
parent
fdb59518
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
73 additions
and
2 deletions
+73
-2
DSView/CMake/FindFFTW.cmake
DSView/CMake/FindFFTW.cmake
+71
-0
INSTALL
INSTALL
+2
-2
No files found.
DSView/CMake/FindFFTW.cmake
0 → 100644
View file @
7665adeb
# - Find FFTW
# Find the native FFTW includes and library
# This module defines
# FFTW_INCLUDE_DIR, where to find fftw3.h, etc.
# FFTW_LIBRARIES, the libraries needed to use FFTW.
# FFTW_FOUND, If false, do not try to use FFTW.
# also defined, but not for general use are
# FFTW_LIBRARY, where to find the FFTW library.
FIND_PATH
(
FFTW_INCLUDE_DIR fftw3.h
/usr/local/include
/usr/include
/opt/local/lib
)
SET
(
FFTW_NAMES
${
FFTW_NAMES
}
fftw3 fftw3f fftw3-3
)
FIND_LIBRARY
(
FFTW_LIBRARY
NAMES
${
FFTW_NAMES
}
PATHS /usr/lib /usr/local/lib /opt/locala/lib
)
# Find threads part of FFTW
SET
(
FFTW_THREADS_NAMES
${
FFTW_THREADS_NAMES
}
fftw3f_threads fftw3_threads fftw3-3_threads
)
FIND_LIBRARY
(
FFTW_THREADS_LIBRARY
NAMES
${
FFTW_THREADS_NAMES
}
PATHS /usr/lib /usr/local/lib /opt/local/lib
)
IF
(
FFTW_THREADS_LIBRARY AND FFTW_INCLUDE_DIR
)
SET
(
FFTW_THREADS_LIBRARIES
${
FFTW_THREADS_LIBRARY
}
)
SET
(
FFTW_THREADS_FOUND
"YES"
)
ELSE
(
FFTW_THREADS_LIBRARY AND FFTW_INCLUDE_DIR
)
SET
(
FFTW_THREADS_FOUND
"NO"
)
ENDIF
(
FFTW_THREADS_LIBRARY AND FFTW_INCLUDE_DIR
)
IF
(
FFTW_THREADS_FOUND
)
IF
(
NOT FFTW_THREADS_FIND_QUIETLY
)
MESSAGE
(
STATUS
"Found FFTW threads:
${
FFTW_THREADS_LIBRARIES
}
"
)
ENDIF
(
NOT FFTW_THREADS_FIND_QUIETLY
)
ELSE
(
FFTW_THREADS_FOUND
)
IF
(
FFTW_THREADS_FIND_REQUIRED
)
MESSAGE
(
FATAL_ERROR
"Could not find FFTW threads library"
)
ENDIF
(
FFTW_THREADS_FIND_REQUIRED
)
ENDIF
(
FFTW_THREADS_FOUND
)
IF
(
FFTW_LIBRARY AND FFTW_INCLUDE_DIR
)
SET
(
FFTW_LIBRARIES
${
FFTW_LIBRARY
}
)
SET
(
FFTW_FOUND
"YES"
)
ELSE
(
FFTW_LIBRARY AND FFTW_INCLUDE_DIR
)
SET
(
FFTW_FOUND
"NO"
)
ENDIF
(
FFTW_LIBRARY AND FFTW_INCLUDE_DIR
)
IF
(
FFTW_FOUND
)
IF
(
NOT FFTW_FIND_QUIETLY
)
MESSAGE
(
STATUS
"Found FFTW:
${
FFTW_LIBRARIES
}
"
)
ENDIF
(
NOT FFTW_FIND_QUIETLY
)
ELSE
(
FFTW_FOUND
)
IF
(
FFTW_FIND_REQUIRED
)
MESSAGE
(
FATAL_ERROR
"Could not find FFTW library"
)
ENDIF
(
FFTW_FIND_REQUIRED
)
ENDIF
(
FFTW_FOUND
)
SET
(
ON_UNIX
${
CMAKE_SYSTEM_NAME
}
STREQUAL
"Linux"
OR
${
CMAKE_SYSTEM_NAME
}
STREQUAL
"Darwin"
)
IF
(
${
ON_UNIX
}
)
SET
(
FFTW_EXECUTABLE_LIBRARIES fftw3f fftw3f_threads
)
ENDIF
(
${
ON_UNIX
}
)
This diff is collapsed.
Click to expand it.
INSTALL
View file @
7665adeb
...
...
@@ -38,9 +38,9 @@ Step2: Installing the requirements:
please check your respective distro's package manager tool if you use other distros
Debian/Ubuntu:
$ sudo apt-get install git-core
gcc gcc-c++ make
cmake autoconf automake libtool pkg-config \
$ sudo apt-get install git-core
build-essential
cmake autoconf automake libtool pkg-config \
libglib2.0-dev libzip-dev libudev-dev libusb-1.0-0-dev \
python3-dev qt5-default
qt5-qtbase-devel
libboost-dev libboost-test-dev libboost-thread-dev libboost-system-dev libboost-filesystem-dev check libfftw3-dev
python3-dev qt5-default libboost-dev libboost-test-dev libboost-thread-dev libboost-system-dev libboost-filesystem-dev check libfftw3-dev
Fedora (18, 19):
$ sudo yum install git gcc g++ make cmake autoconf automake libtool pkgconfig glib2-devel \
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment