CMakeLists.txt 1.14 KB
Newer Older
1
if (WIN32)
2 3 4
SET(PREFIX_ext_fftw3 "${EXTPREFIX}" )
ExternalProject_Add( ext_fftw3
        DOWNLOAD_DIR ${EXTERNALS_DOWNLOAD_DIR}
5 6
     	URL http://www.fftw.org/fftw-3.3.8.tar.gz
        URL_MD5 8aac833c943d8e90d51b697b27d4384d
7 8 9

        PATCH_COMMAND ${PATCH_COMMAND} -p1 -i ${CMAKE_CURRENT_SOURCE_DIR}/patch_mingw.patch

10
        INSTALL_DIR ${PREFIX_ext_fftw3}
11
        CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${PREFIX_ext_fftw3} -DCMAKE_BUILD_TYPE=${GLOBAL_BUILD_TYPE} ${GLOBAL_PROFILE} -DWITH_COMBINED_THREADS=ON -ENABLE_SSE=ON -ENABLE_SSE2=ON -DBUILD_TESTS=OFF
12

13 14
        UPDATE_COMMAND ""
)
15 16 17 18 19 20 21 22 23 24
else()
SET(PREFIX_ext_fftw3 "${EXTPREFIX}" )
ExternalProject_Add( ext_fftw3
        DOWNLOAD_DIR ${EXTERNALS_DOWNLOAD_DIR}
     	URL http://www.fftw.org/fftw-3.3.8.tar.gz
        URL_MD5 8aac833c943d8e90d51b697b27d4384d

        PATCH_COMMAND ${PATCH_COMMAND} -p1 -i ${CMAKE_CURRENT_SOURCE_DIR}/patch_mingw.patch

        INSTALL_DIR ${PREFIX_ext_fftw3}
25
        CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${PREFIX_ext_fftw3} -DCMAKE_BUILD_TYPE=${GLOBAL_BUILD_TYPE} ${GLOBAL_PROFILE} -DENABLE_THREADS=ON -ENABLE_SSE=ON -ENABLE_SSE2=ON -DBUILD_TESTS=OFF
26 27 28 29

        UPDATE_COMMAND ""
)
endif()