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
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
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
Julien Cabieces
otb
Commits
5d95d74e
Commit
5d95d74e
authored
12 years ago
by
Julien Malik
Browse files
Options
Downloads
Patches
Plain Diff
COMP: remove FindFFTW from ITK source tree so that we use the one from OTB/CMake dir
parent
b4ef2166
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Utilities/ITK/CMake/FindFFTW.cmake
+0
-68
0 additions, 68 deletions
Utilities/ITK/CMake/FindFFTW.cmake
Utilities/ITK/CMakeLists.txt
+1
-1
1 addition, 1 deletion
Utilities/ITK/CMakeLists.txt
with
1 addition
and
69 deletions
Utilities/ITK/CMake/FindFFTW.cmake
deleted
100644 → 0
+
0
−
68
View file @
b4ef2166
## FFTW can be compiled and subsequently linked against
## various data types.
## There is a single set of include files, and then muttiple libraries,
## One for each type. I.e. libfftw.a-->double, libfftwf.a-->float
## The following logic belongs in the individual package
## MARK_AS_ADVANCED(USE_FFTWD)
## OPTION(USE_FFTWD "Use double precision FFTW if found" ON)
## MARK_AS_ADVANCED(USE_FFTWF)
## OPTION(USE_FFTWF "Use single precision FFTW if found" ON)
IF
(
USE_FFTWD OR USE_FFTWF
)
SET
(
FFTW_INC_SEARCHPATH
/sw/include
/usr/include
/usr/local/include
/usr/include/fftw
/usr/local/include/fftw
)
FIND_PATH
(
FFTW_INCLUDE_PATH fftw3.h
${
FFTW_INC_SEARCHPATH
}
)
IF
(
FFTW_INCLUDE_PATH
)
SET
(
FFTW_INCLUDE
${
FFTW_INCLUDE_PATH
}
)
ENDIF
(
FFTW_INCLUDE_PATH
)
IF
(
FFTW_INCLUDE
)
INCLUDE_DIRECTORIES
(
${
FFTW_INCLUDE
}
)
ENDIF
(
FFTW_INCLUDE
)
GET_FILENAME_COMPONENT
(
FFTW_INSTALL_BASE_PATH
${
FFTW_INCLUDE_PATH
}
PATH
)
SET
(
FFTW_LIB_SEARCHPATH
${
FFTW_INSTALL_BASE_PATH
}
/lib
/usr/lib/fftw
/usr/local/lib/fftw
)
IF
(
USE_FFTWD
)
MARK_AS_ADVANCED
(
FFTWD_LIB
)
# OPTION(FFTWD_LIB "The full path to the fftw3 library (including the library)" )
FIND_LIBRARY
(
FFTWD_LIB fftw3
${
FFTW_LIB_SEARCHPATH
}
)
#Double Precision Lib
FIND_LIBRARY
(
FFTWD_THREADS_LIB fftw3_threads
${
FFTW_LIB_SEARCHPATH
}
)
#Double Precision Lib only if compiled with threads support
IF
(
FFTWD_LIB
)
SET
(
FFTWD_FOUND 1
)
IF
(
FFTWD_THREADS_LIB
)
SET
(
FFTWD_LIB
${
FFTWD_LIB
}
${
FFTWD_THREADS_LIB
}
)
ENDIF
(
FFTWD_THREADS_LIB
)
ENDIF
(
FFTWD_LIB
)
ENDIF
(
USE_FFTWD
)
IF
(
USE_FFTWF
)
MARK_AS_ADVANCED
(
FFTWF_LIB
)
# OPTION(FFTWF_LIB "The full path to the fftw3f library (including the library)" )
FIND_LIBRARY
(
FFTWF_LIB fftw3f
${
FFTW_LIB_SEARCHPATH
}
)
#Single Precision Lib
FIND_LIBRARY
(
FFTWF_THREADS_LIB fftw3f_threads
${
FFTW_LIB_SEARCHPATH
}
)
#Single Precision Lib only if compiled with threads support
IF
(
FFTWF_LIB
)
SET
(
FFTWF_FOUND 1
)
IF
(
FFTWF_THREADS_LIB
)
SET
(
FFTWF_LIB
${
FFTWF_LIB
}
${
FFTWF_THREADS_LIB
}
)
ENDIF
(
FFTWF_THREADS_LIB
)
ENDIF
(
FFTWF_LIB
)
ENDIF
(
USE_FFTWF
)
ENDIF
(
USE_FFTWD OR USE_FFTWF
)
This diff is collapsed.
Click to expand it.
Utilities/ITK/CMakeLists.txt
+
1
−
1
View file @
5d95d74e
...
...
@@ -103,7 +103,7 @@ SET(ITK_LIBRARY_PATH "${LIBRARY_OUTPUT_PATH}")
SET
(
ITK_EXECUTABLE_PATH
"
${
EXECUTABLE_OUTPUT_PATH
}
"
)
SET
(
CXX_TEST_PATH
${
EXECUTABLE_OUTPUT_PATH
}
)
SET
(
CMAKE_MODULE_PATH
${
ITK_SOURCE_DIR
}
/CMake
)
SET
(
CMAKE_MODULE_PATH
${
ITK_SOURCE_DIR
}
/CMake
${
CMAKE_MODULE_PATH
}
)
# Deal with FFT v3 Options
MARK_AS_ADVANCED
(
USE_FFTWD
)
OPTION
(
USE_FFTWD
"Use double precision FFTW if found"
OFF
)
...
...
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