Displaying 1 result from an estimated 1 matches for "cmake_dependent_opt".
2017 May 29
0
[PATCH] Add CMake build script
...POINT)
+ message(FATAL_ERROR "Select one of ENABLE_FLOATING_POINT of ENABLE_FIXED_POINT.")
+endif()
+if((NOT ENABLE_FLOATING_POINT) AND (NOT ENABLE_FIXED_POINT))
+ message(FATAL_ERROR "Select one of ENABLE_FLOATING_POINT of ENABLE_FIXED_POINT.")
+endif()
+
+find_package(FFTW)
+
+cmake_dependent_option(USE_GPL_FFTW3 "Use FFTW3 for FFT" OFF "FFTW_FOUND; ENABLE_FLOATING_POINT" OFF)
+
+if(ENABLE_FLOATING_POINT)
+ set(FLOATING_POINT 1)
+ set(FIXED_POINT 0)
+ set(USE_KISS_FFT 0)
+ if(NOT USE_GPL_FFTW3)
+ set(USE_SMALLFT 1)
+ endif()
+else()
+ set(FLOATING_POINT 0)
+ set(FIXED_P...