From 3c8fc9375826f5af508fc7824d7d7c8fc4daee00 Mon Sep 17 00:00:00 2001 From: Mike Walters Date: Mon, 30 Nov 2015 14:38:55 +0000 Subject: [PATCH] cmake: Specify fftw include/link directories to fix OSX build Linux build fills FFTW_INCLUDEDIR while OSX build fills FFTW_INCLUDE_DIRS, so both are included. Proper future solution will be to fix things to FFTW_LIBRARIES contains an absolute path --- CMakeLists.txt | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b788a24..fc1d0d3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -35,7 +35,16 @@ list(APPEND inspectrum_sources INCLUDE(FindPkgConfig) find_package(Qt5Widgets REQUIRED) pkg_check_modules(FFTW REQUIRED fftw3f) -include_directories(${QT_INCLUDES} ${FFTW_INCLUDEDIR}) + +include_directories( + ${QT_INCLUDES} + ${FFTW_INCLUDEDIR} + ${FFTW_INCLUDE_DIRS} +) + +link_directories( + ${FFTW_LIBRARY_DIRS} +) add_executable(inspectrum ${inspectrum_sources}) qt5_use_modules(inspectrum Widgets)