Skip to content

Instantly share code, notes, and snippets.

@docprofsky
Created September 22, 2017 03:53
Show Gist options
  • Save docprofsky/3ab3e1e4e29ea534548595d9437fa3c7 to your computer and use it in GitHub Desktop.
Save docprofsky/3ab3e1e4e29ea534548595d9437fa3c7 to your computer and use it in GitHub Desktop.
nrsc5 set include path
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index fb4a6a6..b681cbc 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -13,7 +13,10 @@ if (USE_FAST_MATH)
endif()
configure_file (config.h.in config.h)
-include_directories ("${CMAKE_CURRENT_BINARY_DIR}")
+
+find_path (FFTW3_INCLUDE_DIRS fftw3.h)
+
+include_directories ("${CMAKE_CURRENT_BINARY_DIR}" ${FFTW3_INCLUDE_DIRS})
add_executable (
nrsc5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment