Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
otb
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main Repositories
otb
Commits
556c0dce
Commit
556c0dce
authored
6 years ago
by
Guillaume Pasero
Browse files
Options
Downloads
Patches
Plain Diff
SuperBuild: upgrade FFTW to 3.3.8, MSVC support
parent
a39cb76d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!621
Release 7.0 (master)
,
!292
FFTW upgrade
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
SuperBuild/CMake/External_fftw.cmake
+20
-36
20 additions, 36 deletions
SuperBuild/CMake/External_fftw.cmake
SuperBuild/CMake/External_itk.cmake
+7
-10
7 additions, 10 deletions
SuperBuild/CMake/External_itk.cmake
with
27 additions
and
46 deletions
SuperBuild/CMake/External_fftw.cmake
+
20
−
36
View file @
556c0dce
...
...
@@ -25,34 +25,22 @@ SETUP_SUPERBUILD(FFTW)
set
(
FFTWF_SB_SRC
${
CMAKE_BINARY_DIR
}
/FFTW/src/FFTWF
)
set
(
FFTWD_SB_SRC
${
CMAKE_BINARY_DIR
}
/FFTW/src/FFTWD
)
if
(
MSVC
)
# TODO : get precompiled binaries as not all MSVC versions can compile FFTW
message
(
STATUS
" FFTW SuperBuild is not available yet..."
)
add_custom_target
(
FFTW
)
return
()
endif
()
# Compile the float version of FFTW
ExternalProject_Add
(
FFTWF
PREFIX FFTW/FFTWF
URL
"http://www.fftw.org/fftw-3.3.
4
.tar.gz"
URL_MD5
2edab8c06b24feeb3b82bbb3ebf3e7b3
URL
"http://www.fftw.org/fftw-3.3.
8
.tar.gz"
URL_MD5
8aac833c943d8e90d51b697b27d4384d
SOURCE_DIR
${
FFTWF_SB_SRC
}
BINARY_DIR
${
FFTWF_SB_SRC
}
INSTALL_DIR
${
SB_INSTALL_PREFIX
}
DOWNLOAD_DIR
${
DOWNLOAD_LOCATION
}
CONFIGURE_COMMAND
${
SB_ENV_CONFIGURE_CMD
}
${
FFTWF_SB_SRC
}
/configure
--prefix=
${
SB_INSTALL_PREFIX
}
--enable-shared
--disable-static
--enable-float
--enable-threads
--disable-fortran
--disable-dependency-tracking
CMAKE_CACHE_ARGS
${
SB_CMAKE_CACHE_ARGS
}
-DBUILD_TESTS:BOOL=OFF
-DDISABLE_FORTRAN:BOOL=ON
-DENABLE_THREADS:BOOL=ON
-DENABLE_SSE2:BOOL=ON
-DENABLE_FLOAT:BOOL=ON
DEPENDS
${
FFTW_DEPENDENCIES
}
LOG_DOWNLOAD 1
LOG_CONFIGURE 1
...
...
@@ -60,27 +48,24 @@ ExternalProject_Add(FFTWF
LOG_INSTALL 1
)
SUPERBUILD_PATCH_SOURCE
(
FFTWF
)
#
SUPERBUILD_PATCH_SOURCE(FFTWF)
# Compile the double version of FFTW
ExternalProject_Add
(
FFTWD
PREFIX FFTW/FFTWD
URL
"http://www.fftw.org/fftw-3.3.
4
.tar.gz"
URL_MD5
2edab8c06b24feeb3b82bbb3ebf3e7b3
URL
"http://www.fftw.org/fftw-3.3.
8
.tar.gz"
URL_MD5
8aac833c943d8e90d51b697b27d4384d
SOURCE_DIR
${
FFTWD_SB_SRC
}
BINARY_DIR
${
FFTWD_SB_SRC
}
INSTALL_DIR
${
SB_INSTALL_PREFIX
}
DOWNLOAD_DIR
${
DOWNLOAD_LOCATION
}
CONFIGURE_COMMAND
${
SB_ENV_CONFIGURE_CMD
}
${
FFTWD_SB_SRC
}
/configure
--prefix=
${
SB_INSTALL_PREFIX
}
--enable-shared
--disable-static
--disable-float
--enable-threads
--disable-fortran
--disable-dependency-tracking
CMAKE_CACHE_ARGS
${
SB_CMAKE_CACHE_ARGS
}
-DBUILD_TESTS:BOOL=OFF
-DDISABLE_FORTRAN:BOOL=ON
-DENABLE_THREADS:BOOL=ON
-DENABLE_SSE2:BOOL=ON
-DENABLE_FLOAT:BOOL=OFF
DEPENDS FFTWF
LOG_DOWNLOAD 1
LOG_CONFIGURE 1
...
...
@@ -88,8 +73,7 @@ ExternalProject_Add(FFTWD
LOG_INSTALL 1
)
SUPERBUILD_PATCH_SOURCE
(
FFTWD
)
# SUPERBUILD_PATCH_SOURCE(FFTWD)
ExternalProject_Add
(
FFTW
PREFIX FFTW
...
...
This diff is collapsed.
Click to expand it.
SuperBuild/CMake/External_itk.cmake
+
7
−
10
View file @
556c0dce
...
...
@@ -124,21 +124,18 @@ ADDTO_DEPENDENCIES_IF_NOT_SYSTEM(ITK ZLIB FFTW)
ADD_SUPERBUILD_CMAKE_VAR
(
ITK ZLIB_INCLUDE_DIR
)
ADD_SUPERBUILD_CMAKE_VAR
(
ITK ZLIB_LIBRARY
)
# By default activate FFTW, but with an external fftw build
# These variables are used in ITK to initialize the value of the ITK_USE_FFTW_XXX options
list
(
APPEND ITK_SB_CONFIG
-DUSE_FFTWF:BOOL=ON
-DUSE_FFTWD:BOOL=ON
-DUSE_SYSTEM_FFTW:BOOL=ON
)
ADD_SUPERBUILD_CMAKE_VAR
(
ITK FFTW_INCLUDE_PATH
)
if
(
WIN32
)
list
(
APPEND ITK_SB_CONFIG
-DUSE_FFTWF:BOOL=OFF
-DUSE_FFTWD:BOOL=OFF
-DCMAKE_WINDOWS_EXPORT_ALL_SYMBOLS:BOOL=ON
)
else
()
list
(
APPEND ITK_SB_CONFIG
-DUSE_FFTWF:BOOL=ON
-DUSE_FFTWD:BOOL=ON
-DUSE_SYSTEM_FFTW:BOOL=ON
)
ADD_SUPERBUILD_CMAKE_VAR
(
ITK FFTW_INCLUDE_PATH
)
endif
()
#variables are later used in packaging
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment