Link to fftw3f library. Added test with swapped dimensions

This commit is contained in:
Guilhem Lavaux 2012-11-11 14:30:45 -05:00
parent c49c8cb232
commit ed1fede33d
3 changed files with 6 additions and 3 deletions

View File

@ -55,6 +55,7 @@ include(FindHDF5)
include(FindPkgConfig)
pkg_check_modules(FFTW3 fftw3>=3.3)
pkg_check_modules(FFTW3F fftw3f>=3.3)
pkg_check_modules(EIGEN3 eigen3)
include(FindPackageHandleStandardArgs)

View File

@ -44,9 +44,9 @@ target_link_libraries(testAlgo ${tolink})
add_executable(testBSP testBSP.cpp)
target_link_libraries(testBSP ${tolink})
if (FFTW3_FOUND AND EIGEN3_FOUND)
if (FFTW3_FOUND AND FFTW3F_FOUND AND EIGEN3_FOUND)
add_executable(test_fft_calls test_fft_calls.cpp)
target_link_libraries(test_fft_calls ${tolink} ${FFTW3_LIBRARIES})
target_link_libraries(test_fft_calls ${tolink} ${FFTW3_LIBRARIES} ${FFTW3F_LIBRARIES})
endif (FFTW3_FOUND AND EIGEN3_FOUND)
if (SHARP_LIBRARY AND SHARP_INCLUDE_PATH AND EIGEN3_FOUND)

View File

@ -51,7 +51,9 @@ int main(int argc, char **argv)
{
test_2d<double>(128,128);
test_2d<double>(131,128);
test_2d<double>(130,128);
test_2d<float>(128,128);
test_2d<float>(131,128);
test_2d<float>(128,131);
test_2d<float>(128,130);
return 0;
}