2019-09-27 05:31:55 +08:00
vcpkg_buildpath_length_warning ( 37 )
2019-05-09 20:52:25 +02:00
2024-11-16 01:16:45 +01:00
vcpkg_download_distfile ( PYTHON_GPU_WRAPPING_PATCH
U R L S h t t p s : / / g i t h u b . c o m / I n s i g h t S o f t w a r e C o n s o r t i u m / I T K / c o m m i t / e 9 b 3 d 2 4 f 7 8 2 a 4 2 f 5 5 8 6 1 6 9 e 0 4 8 b 8 d 2 8 9 f 8 6 9 d 7 8 a . d i f f ? f u l l _ i n d e x = 1
F I L E N A M E I n s i g h t S o f t w a r e C o n s o r t i u m - I T K - p y t h o n - g p u - w r a p p i n g . p a t c h
S H A 5 1 2 7 1 5 2 6 3 2 0 5 4 7 b 0 e b 5 d 0 c 0 e 0 0 8 8 e 9 2 f f 6 0 b a 0 6 4 6 2 b 8 2 c 5 3 1 c 7 9 7 8 4 d 7 6 6 3 6 1 8 0 5 9 7 0 d 9 c a d 5 5 0 6 6 0 c 7 c 8 5 b 9 5 3 e c 5 4 6 b 3 2 c 1 8 1 a e a b 5 d 9 f 6 d 4 1 4 2 7 6 4 d 6 f 7 6 5 1 0 6 9 8 2 a 0
)
2017-10-11 15:48:41 -04:00
vcpkg_from_github (
O U T _ S O U R C E _ P A T H S O U R C E _ P A T H
R E P O I n s i g h t S o f t w a r e C o n s o r t i u m / I T K
2023-10-23 11:38:03 -07:00
R E F " v $ { V E R S I O N } "
2024-11-16 01:16:45 +01:00
#[[
W h e n u p d a t i n g t h e I T K v e r s i o n a n d S H A 5 1 2 , r e m e m b e r t o u p d a t e t h e r e m o t e m o d u l e v e r s i o n s b e l o w .
#]]
2024-07-10 16:04:36 +02:00
S H A 5 1 2 3 a 9 8 e c e c f 2 5 8 a a c 5 4 5 f 0 9 4 d d 3 e 9 7 9 1 8 c 9 3 c c 8 2 b c 6 2 3 d d f 7 9 3 c 4 b f 0 1 6 2 a b 0 6 c 8 3 f b f d 4 d 0 8 1 3 0 b d e c 6 e 6 1 7 b d a 8 5 d d 1 7 2 2 5 4 8 8 b c 1 3 9 4 b c 9 1 b 1 7 f 1 2 3 2 1 2 6 a 5 d 9 9 0 d b
2017-10-11 15:48:41 -04:00
H E A D _ R E F m a s t e r
[many ports] improvements for linux/wsl (#6730)
* [many ports] improve compatibility with WSL and mixed case filesystems
* [treehopper] express dependency on libusb, which was not working on non-win32 platforms and is still broken there
* [libharu] add compatibility with non-win32 platforms
* [geogram] fix openblas on linux
[clapack] better integration with linux environment
[visit-struct] put cmake config file in the expected folder
[geogram] remove trailing underscore to enable compatibility with OpenBLAS
* [openblas] playing with underscore, without success
* [openblas/lapack] fix library integration
* [clapack] improve target handling in cmake module
* [openblas] promote self-generated config to default cmake module, otherwise internal ones thinks wrongly that openblas can also solve lapack libs
* [clapack,openblas] improve libraries integration
* [many ports] fix cmake unnecessary target paths, wrong config paths, empty default dependencies, unnecessary [core] tags
* [suitesparse] improve integration with new lapack/openblas mechanism
* [suitesparse] add no underscore postfix also for linux
* [ceres] fix integration with newer openblas/lapack configs
* [aws-c-event-stream] fix regression
* [systemc] fix regression
* [libwebp,geogram] trigger rebuild
* [libwebp,pthread4w] fix regressions
* [glbinding] fix cmake module installation
* [globjects] disentangle unnecessary dependency from qt5
* [jasper] remove broken and unnecessary patches
* [libwebp] fix regression
* [many ports] avoid using BUILD_SHARED_LIBS which is uninitialized in port files
* [clapack] correctly find dlls
* [clapack] use a generic blas as dependency
* [fizz,g2o] restore expected version
* fix mistake
* [many ports] remove WIN32, APPLE and UNIX (again, they keep creeping in) from ports since they are broken and usually break non-win32 ports
* [libressl,openssl] do not try to build one if the other is already installed
* [itk] update ref and patch to avoid regression
* [libressl,openssl] implement full strategy to fix CI
* [libwebp] disable components that are broken on macOS
* [ogre] enable macOS build
* [freeimage,jxrlib,ogre,openexr,protobuf] port patches from #5169
* [ogre] add missing install command
* [ffmpeg] enable wrapper for cmake module
* [ffmpeg] add avresample module finder
* [ffmpeg] improve module detection and exported symbols
* [ffmpeg] add variables to cache
* [thrift] remove unnecessary build option
* [allegro5] fix shared/static inversion
* [protobuf] cleanup
* [libressl] cleanup
* [moos-core] cleanup
* commented features must not be separated from other features, otherwise vcpkg complains
* [itk] fix regression
* [shogun,itk] fix regressions
* [ogre] fix regression
* [opusfile] add compatibility with non-win32
* [itk] fix regression
* [sndfile,libsndfile] remove duplicate, redirect sndfile to libsndfile
* add missing dependencies
* [ismrmrd] fix regression
* [ffmpeg] trigger rebuild
* [clapack,openblas,libogg] fix regressions on macOS
* [libtins] fix regression
* force rebuild windows regressions, unable to reproduce locally
* [mosquitto] enable non-win32 builds
* [json-dto] force rebuild, unable to reproduce regression locally
* [many ports] uniform naming and path length requests
* fix regression
* fix regression
* [ffmpeg] fixes for downstream projects
* clean up - thanks to reviewers
* trigger rebuild of regressions on macOS
* trigger rebuild of regressions on macOS - part2
* Add core back
* Use VCPKG_CONCURRENCY
* Add core back to suitesparse
* Add core back to curl
* Add core back to magnum
* Add core back to magnum
* Add core back to magnum
* Add core back to cgal
2019-06-21 04:11:54 +02:00
P A T C H E S
2024-11-16 01:16:45 +01:00
d e p e n d e n c i e s . d i f f
f f t w . d i f f
2020-08-03 00:49:20 +02:00
o p e n j p e g . p a t c h
v a r _ l i b r a r i e s . p a t c h
w r a p p i n g . p a t c h
2020-10-19 19:53:20 -07:00
u s e - t h e - l r i n t f - i n t r i n s i c . p a t c h
2022-10-14 16:28:29 -07:00
d o n t - b u i l d - g t e s t . p a t c h
2024-11-16 01:16:45 +01:00
" $ { P Y T H O N _ G P U _ W R A P P I N G _ P A T C H } "
)
file ( REMOVE_RECURSE
" $ { S O U R C E _ P A T H } / C M a k e / F i n d O p e n C L . c m a k e "
" $ { S O U R C E _ P A T H } / M o d u l e s / T h i r d P a r t y / G D C M / s r c "
" $ { S O U R C E _ P A T H } / M o d u l e s / T h i r d P a r t y / O p e n J P E G / s r c / o p e n j p e g "
" $ { S O U R C E _ P A T H } / M o d u l e s / T h i r d P a r t y / V N L / s r c "
2020-08-03 00:49:20 +02:00
)
2024-11-16 01:16:45 +01:00
if ( "cuda" IN_LIST FEATURES )
vcpkg_from_github (
O U T _ S O U R C E _ P A T H R T K _ S O U R C E _ P A T H
R E P O R T K C o n s o r t i u m / I T K C u d a C o m m o n
# Cf. Modules/Remote/CudaCommon.remote.cmake
R E F 0 c 2 0 c 4 e f 1 0 d 8 1 9 1 0 c 8 b 2 a c 4 e 8 4 4 6 a 1 5 4 4 f c e 3 b 6 0
S H A 5 1 2 0 e b 1 a 6 f e 8 5 e 6 9 5 3 4 5 a 4 9 8 8 7 c d d 6 5 1 0 3 b e d a b 7 2 e 0 1 a e 8 5 e d 0 3 e 1 6 a 8 a 2 9 6 c 6 c b 6 9 a 8 d 8 8 9 a 5 7 b 2 2 d d e 7 f c c 6 9 d f 4 f 6 0 4 c 2 7 4 b 0 4 2 3 4 c 8 e c e 3 0 6 d 0 8 3 6 1 f a c 5 d b 0 2 9 0 6 9
H E A D _ R E F m a s t e r
)
file ( REMOVE_RECURSE "${SOURCE_PATH}/Modules/Remote/CudaCommon" )
file ( RENAME "${RTK_SOURCE_PATH}" "${SOURCE_PATH}/Modules/Remote/CudaCommon" )
file ( COPY_FILE "${SOURCE_PATH}/Modules/Remote/CudaCommon/LICENSE" "${SOURCE_PATH}/CudaCommon LICENSE" )
endif ( )
if ( "rtk" IN_LIST FEATURES )
# (old hint, not verified) RTK + CUDA + PYTHON + dynamic library linkage will fail and needs upstream fixes.
# RTK's ITK module must be built with ITK.
vcpkg_from_github (
O U T _ S O U R C E _ P A T H R T K _ S O U R C E _ P A T H
R E P O R T K C o n s o r t i u m / R T K
# Cf. Modules/Remote/RTK.remote.cmake
R E F b f d c a 5 b 6 b 6 6 6 b 4 f 0 8 f 2 f 7 d 8 0 3 9 a f 1 1 a 1 5 c c 3 f 8 3 1
S H A 5 1 2 1 0 a 2 1 f b 4 b 8 2 a a 8 2 0 e 5 0 7 e 8 1 a 6 b 6 a 3 c 1 a a e e 2 e a 1 e d f 3 9 3 6 4 d c 1 c 8 d 5 4 e 6 b 1 1 b 9 1 f 2 2 d 9 9 9 3 c 0 b 5 6 c 0 e 8 e 2 0 b 6 d 5 4 9 f c d 6 1 0 4 d e 4 e 1 c 5 e 6 6 4 f 9 f f 5 9 f 5 f 9 3 9 3 5 f b 5 2 2 5 a
H E A D _ R E F m a s t e r
P A T C H E S
r t k / c m p 0 1 5 3 . d i f f
r t k / g e t o p t - w i n 3 2 . d i f f
)
file ( REMOVE_RECURSE "${SOURCE_PATH}/Modules/Remote/RTK" )
file ( RENAME "${RTK_SOURCE_PATH}" "${SOURCE_PATH}/Modules/Remote/RTK" )
file ( COPY_FILE "${SOURCE_PATH}/Modules/Remote/RTK/COPYRIGHT.TXT" "${SOURCE_PATH}/RTK COPYRIGHT.TXT" )
endif ( )
2020-08-03 00:49:20 +02:00
vcpkg_check_features ( OUT_FEATURE_OPTIONS FEATURE_OPTIONS
2021-11-15 18:10:29 +01:00
F E A T U R E S
" v t k " M o d u l e _ I T K V t k G l u e
2024-07-10 16:04:36 +02:00
" c u d a " M o d u l e _ C u d a C o m m o n # Requires RTK?
2024-11-16 01:16:45 +01:00
" c u d a " R T K _ U S E _ C U D A
2021-11-15 18:10:29 +01:00
#"cuda" CUDA_HAVE_GPU # Automatically set by FindCUDA?
" c u f f t w " I T K _ U S E _ C U F F T W
" o p e n c l " I T K _ U S E _ G P U
" t b b " M o d u l e _ I T K T B B
" r t k " M o d u l e _ R T K
" t o o l s " R T K _ B U I L D _ A P P L I C A T I O N S
2022-03-22 03:27:37 +01:00
" o p e n c v " M o d u l e _ I T K V i d e o B r i d g e O p e n C V
2021-11-15 18:10:29 +01:00
# There are a lot of more (remote) modules and options in ITK
# feel free to add those as a feature
2017-03-02 17:44:43 -05:00
)
2020-08-03 00:49:20 +02:00
if ( "cufftw" IN_LIST FEATURES )
2024-11-16 01:16:45 +01:00
vcpkg_find_cuda ( OUT_CUDA_TOOLKIT_ROOT cuda_toolkit_root )
list ( APPEND ADDITIONAL_OPTIONS
" - D C U D A T o o l k i t _ R O O T = $ { c u d a _ t o o l k i t _ r o o t } "
)
2020-08-03 00:49:20 +02:00
endif ( )
2024-11-16 01:16:45 +01:00
if ( "fftw" IN_LIST FEATURES )
# Never set these options to OFF: dual use with feature 'cufftw'
2020-08-03 00:49:20 +02:00
list ( APPEND ADDITIONAL_OPTIONS
2024-11-16 01:16:45 +01:00
- D I T K _ U S E _ F F T W D = O N
- D I T K _ U S E _ F F T W F = O N
)
2020-08-03 00:49:20 +02:00
endif ( )
if ( "opencl" IN_LIST FEATURES )
list ( APPEND ADDITIONAL_OPTIONS # Wrapping options required by OpenCL if build with Python Wrappers
- D I T K _ W R A P _ u n s i g n e d _ l o n g _ l o n g = O N
- D I T K _ W R A P _ s i g n e d _ l o n g _ l o n g = O N
)
endif ( )
2020-10-19 19:53:20 -07:00
2024-11-16 01:16:45 +01:00
if ( "tools" IN_LIST FEATURES )
2020-08-03 00:49:20 +02:00
if ( "rtk" IN_LIST FEATURES )
2020-10-19 19:53:20 -07:00
list ( APPEND TOOL_NAMES rtkadmmtotalvariation rtkadmmwavelets rtkamsterdamshroud rtkbackprojections rtkbioscangeometry rtkcheckimagequality rtkconjugategradient
r t k d i g i s e n s g e o m e t r y r t k d r a w g e o m e t r i c p h a n t o m r t k d r a w s h e p p l o g a n p h a n t o m r t k d u a l e n e r g y s i m p l e x d e c o m p o s i t i o n r t k e l e k t a s y n e r g y g e o m e t r y r t k e x t r a c t p h a s e s i g n a l
r t k e x t r a c t s h r o u d s i g n a l r t k f d k r t k f d k t w o d w e i g h t s r t k f i e l d o f v i e w r t k f o r w a r d p r o j e c t i o n s r t k f o u r d c o n j u g a t e g r a d i e n t r t k f o u r d f d k r t k f o u r d r o o s t e r r t k f o u r d s a r t
r t k g a i n c o r r e c t i o n r t k i 0 e s t i m a t i o n r t k i m a g x g e o m e t r y r t k i t e r a t i v e f d k r t k l a g c o r r e c t i o n r t k l a s t d i m e n s i o n l 0 g r a d i e n t d e n o i s i n g r t k l u t r t k m a s k c o l l i m a t i o n r t k m c r o o s t e r
r t k m o t i o n c o m p e n s a t e d f o u r d c o n j u g a t e g r a d i e n t r t k o r a g e o m e t r y r t k o s e m r t k o v e r l a y p h a s e a n d s h r o u d r t k p a r k e r s h o r t s c a n w e i g h t i n g r t k p r o j e c t g e o m e t r i c p h a n t o m
r t k p r o j e c t i o n m a t r i x r t k p r o j e c t i o n s r t k p r o j e c t s h e p p l o g a n p h a n t o m r t k r a m p r t k r a y b o x i n t e r s e c t i o n r t k r a y q u a d r i c i n t e r s e c t i o n r t k r e g u l a r i z e d c o n j u g a t e g r a d i e n t
r t k s a r t r t k s c a t t e r g l a r e c o r r e c t i o n r t k s i m u l a t e d g e o m e t r y r t k s p e c t r a l d e n o i s e p r o j e c t i o n s r t k s p e c t r a l f o r w a r d m o d e l r t k s p e c t r a l o n e s t e p r t k s p e c t r a l r o o s t e r r t k s p e c t r a l s i m p l e x d e c o m p o s i t i o n
r t k s u b s e l e c t r t k t o t a l n u c l e a r v a r i a t i o n d e n o i s i n g r t k t o t a l v a r i a t i o n d e n o i s i n g r t k t u t o r i a l a p p l i c a t i o n r t k v a r i a n o b i g e o m e t r y r t k v a r i a n p r o b e a m g e o m e t r y r t k v e c t o r c o n j u g a t e g r a d i e n t
2020-08-03 00:49:20 +02:00
r t k w a n g d i s p l a c e d d e t e c t o r w e i g h t i n g r t k w a r p e d b a c k p r o j e c t s e q u e n c e r t k w a r p e d f o r w a r d p r o j e c t s e q u e n c e r t k w a v e l e t s d e n o i s i n g r t k x r a d g e o m e t r y )
endif ( )
endif ( )
2024-11-16 01:16:45 +01:00
if ( "vtk" IN_LIST FEATURES AND EXISTS "${CURRENT_INSTALLED_DIR}/share/vtk/VTKPython-targets.cmake" )
# 'vtk[python]' is built using the installed 'python3'.
# For 'find_package(vtk)', itk needs to provide the same version of python.
# Here, it is a purely *transitive* dependency via 'vtk[python]'.
include ( "${CURRENT_INSTALLED_DIR}/share/python3/vcpkg-port-config.cmake" )
vcpkg_get_vcpkg_installed_python ( PYTHON3 )
2020-08-03 00:49:20 +02:00
list ( APPEND ADDITIONAL_OPTIONS
2024-11-16 01:16:45 +01:00
" - D P y t h o n 3 _ E X E C U T A B L E : P A T H = $ { P Y T H O N 3 } "
)
2020-08-03 00:49:20 +02:00
endif ( )
2024-11-16 01:16:45 +01:00
2020-08-03 00:49:20 +02:00
if ( "python" IN_LIST FEATURES )
message ( STATUS "${PORT} builds a long time (>1h) with python wrappers enabled!" )
2024-11-16 01:16:45 +01:00
vcpkg_get_vcpkg_installed_python ( PYTHON3 )
2020-08-03 00:49:20 +02:00
list ( APPEND ADDITIONAL_OPTIONS
- D I T K _ W R A P _ P Y T H O N = O N
2024-11-16 01:16:45 +01:00
- D I T K _ U S E _ S Y S T E M _ C A S T X M L = O N
" - D C A S T X M L _ E X E C U T A B L E = $ { C U R R E N T _ H O S T _ I N S T A L L E D _ D I R } / t o o l s / c a s t x m l / b i n / c a s t x m l $ { V C P K G _ H O S T _ E X E C U T A B L E _ S U F F I X } "
2020-08-03 00:49:20 +02:00
- D P y t h o n 3 _ F I N D _ R E G I S T R Y = N E V E R
" - D P y t h o n 3 _ E X E C U T A B L E : P A T H = $ { P Y T H O N 3 } " # Required by more than one feature
2024-11-16 01:16:45 +01:00
)
2020-10-19 19:53:20 -07:00
#ITK_PYTHON_SITE_PACKAGES_SUFFIX should be set to the install dir of the site-packages within vcpkg
2024-11-16 01:16:45 +01:00
vcpkg_find_acquire_program ( SWIG ) # Swig is only required for wrapping!
vcpkg_execute_required_process (
C O M M A N D " $ { S W I G } " - v e r s i o n
O U T P U T _ V A R I A B L E s w i g _ v e r s i o n
W O R K I N G _ D I R E C T O R Y " $ { C U R R E N T _ B U I L D T R E E S _ D I R } "
L O G N A M E " s w i g - v e r s i o n - $ { T A R G E T _ T R I P L E T } "
)
string ( REGEX REPLACE ".*Version ([0-9.]*).*" "\\1" swig_version "${swig_version}" )
set ( swig_expected "4.2.0" )
if ( swig_version VERSION_GREATER_EQUAL swig_expected )
vcpkg_execute_required_process (
C O M M A N D " $ { S W I G } " - s w i g l i b
O U T P U T _ V A R I A B L E s w i g l i b
O U T P U T _ S T R I P _ T R A I L I N G _ W H I T E S P A C E
W O R K I N G _ D I R E C T O R Y " $ { C U R R E N T _ B U I L D T R E E S _ D I R } "
L O G N A M E " s w i g l i b - $ { T A R G E T _ T R I P L E T } "
)
list ( APPEND ADDITIONAL_OPTIONS
- D I T K _ U S E _ S Y S T E M _ S W I G = O N
" - D S W I G _ E X E C U T A B L E = $ { S W I G } "
" - D S W I G _ D I R = $ { s w i g l i b } "
)
else ( )
message ( WARNING "Found swig ${swig_version}, but TK needs ${swig_expected}. A binary will be downloaded." )
endif ( )
2018-04-30 14:25:11 -04:00
endif ( )
2024-11-16 01:16:45 +01:00
2022-03-22 03:27:37 +01:00
if ( "opencv" IN_LIST FEATURES )
message ( STATUS "${PORT} includes the ITKVideoBridgeOpenCV" )
list ( APPEND ADDITIONAL_OPTIONS
- D M o d u l e _ I T K V i d e o B r i d g e O p e n C V : B O O L = O N
)
endif ( )
2024-11-16 01:16:45 +01:00
if ( VCPKG_TARGET_IS_WINDOWS AND VCPKG_CRT_LINKAGE STREQUAL "static" )
2024-07-10 16:04:36 +02:00
list ( APPEND ADDITIONAL_OPTIONS
2024-11-16 01:16:45 +01:00
- D I T K _ M S V C _ S T A T I C _ R U N T I M E _ L I B R A R Y = O N
- D I T K _ M S V C _ S T A T I C _ C R T = O N
)
2024-07-10 16:04:36 +02:00
endif ( )
2018-04-30 14:25:11 -04:00
2019-10-08 02:15:30 -07:00
set ( USE_64BITS_IDS OFF )
if ( VCPKG_TARGET_ARCHITECTURE STREQUAL x64 OR VCPKG_TARGET_ARCHITECTURE STREQUAL arm64 )
set ( USE_64BITS_IDS ON )
endif ( )
2021-11-15 18:10:29 +01:00
vcpkg_cmake_configure (
S O U R C E _ P A T H " $ { S O U R C E _ P A T H } "
2018-07-13 09:40:16 -04:00
D I S A B L E _ P A R A L L E L _ C O N F I G U R E
2017-03-02 17:44:43 -05:00
O P T I O N S
- D B U I L D _ T E S T I N G = O F F
- D B U I L D _ E X A M P L E S = O F F
2024-11-16 01:16:45 +01:00
- D C M A K E _ D I S A B L E _ F I N D _ P A C K A G E _ G i t = O N
- D C M A K E _ D I S A B L E _ F I N D _ P A C K A G E _ P e r l = O N
2020-08-03 00:49:20 +02:00
- D I T K _ D O X Y G E N _ H T M L = O F F
2024-11-16 01:16:45 +01:00
- D I T K _ F O R B I D _ D O W N L O A D S = O N
2017-03-02 17:44:43 -05:00
- D D O _ N O T _ I N S T A L L _ I T K _ T E S T _ D R I V E R = O N
2020-08-03 00:49:20 +02:00
- D I T K _ S K I P _ P A T H _ L E N G T H _ C H E C K S = O N
2017-03-02 17:44:43 -05:00
- D I T K _ I N S T A L L _ D A T A _ D I R = s h a r e / i t k / d a t a
- D I T K _ I N S T A L L _ D O C _ D I R = s h a r e / i t k / d o c
- D I T K _ I N S T A L L _ P A C K A G E _ D I R = s h a r e / i t k
2019-10-08 02:15:30 -07:00
- D I T K _ U S E _ 6 4 B I T S _ I D S = $ { U S E _ 6 4 B I T S _ I D S }
2017-03-02 17:44:43 -05:00
- D I T K _ U S E _ C O N C E P T _ C H E C K I N G = O N
2017-12-11 17:36:49 -05:00
#-DITK_USE_SYSTEM_LIBRARIES=ON # enables USE_SYSTEM for all third party libraries, some of which do not have vcpkg ports such as CastXML, SWIG, MINC etc
- D I T K _ U S E _ S Y S T E M _ D O U B L E C O N V E R S I O N = O N
2017-03-02 17:44:43 -05:00
- D I T K _ U S E _ S Y S T E M _ E X P A T = O N
- D I T K _ U S E _ S Y S T E M _ J P E G = O N
- D I T K _ U S E _ S Y S T E M _ P N G = O N
- D I T K _ U S E _ S Y S T E M _ T I F F = O N
- D I T K _ U S E _ S Y S T E M _ Z L I B = O N
2019-04-02 23:35:44 -04:00
- D I T K _ U S E _ S Y S T E M _ E I G E N = O N
2020-08-03 00:49:20 +02:00
- D I T K _ U S E _ S Y S T E M _ F F T W = O N
- D I T K _ U S E _ S Y S T E M _ H D F 5 = O N # HDF5 was problematic in the past and still is. ITK still has not figured out how to do it correctly!
- D I T K _ U S E _ S Y S T E M _ G D C M = O N
- D I T K _ U S E _ S Y S T E M _ O p e n J P E G = O N # Added by VCPKG
2024-11-16 01:16:45 +01:00
- D I T K _ U S E _ S Y S T E M _ V X L = O N
2020-08-03 00:49:20 +02:00
#-DITK_USE_SYSTEM_CASTXML=ON # needs to be added to vcpkg_find_acquire_program https://data.kitware.com/api/v1/file/hashsum/sha512/b8b6f0aff11fe89ab2fcd1949cc75f2c2378a7bc408827a004396deb5ff5a9976bffe8a597f8db1b74c886ea39eb905e610dce8f5bd7586a4d6c196d7349da8d/download
- D I T K _ U S E _ S Y S T E M _ M I N C = O N
- D I T K _ U S E _ S Y S T E M _ G O O G L E T E S T = O N
- D E X E C U T A B L E _ O U T P U T _ P A T H = t o o l s / $ { P O R T }
2020-10-19 19:53:20 -07:00
2020-08-03 00:49:20 +02:00
- D I T K _ M I N I M U M _ C O M P L I A N C E _ L E V E L : S T R I N G = 1 # To Display all remote modules within cmake-gui
#-DModule_IOSTL=ON # example how to turn on a non-default module
#-DModule_MorphologicalContourInterpolation=ON # example how to turn on a remote module
#-DModule_RLEImage=ON # example how to turn on a remote module
2020-10-19 19:53:20 -07:00
2020-08-03 00:49:20 +02:00
# Some additional wraping options
#-DITK_WRAP_double=ON
#-DITK_WRAP_complex_double=ON
#-DITK_WRAP_covariant_vector_double=ON
#-DITK_WRAP_vector_double=ON
2017-12-11 17:36:49 -05:00
2020-08-03 00:49:20 +02:00
$ { F E A T U R E _ O P T I O N S }
2017-03-02 17:44:43 -05:00
$ { A D D I T I O N A L _ O P T I O N S }
2020-10-19 19:53:20 -07:00
2024-11-16 01:16:45 +01:00
O P T I O N S _ D E B U G
- D R T K _ B U I L D _ A P P L I C A T I O N S = O F F
2024-07-10 16:04:36 +02:00
M A Y B E _ U N U S E D _ V A R I A B L E S
2024-11-16 01:16:45 +01:00
E X E C U T A B L E _ O U T P U T _ P A T H
I T K _ U S E _ S Y S T E M _ F F T W
2024-07-10 16:04:36 +02:00
I T K _ U S E _ S Y S T E M _ G O O G L E T E S T
2024-11-16 01:16:45 +01:00
R T K _ B U I L D _ A P P L I C A T I O N S
R T K _ U S E _ C U D A
2017-03-02 17:44:43 -05:00
)
2021-11-15 18:10:29 +01:00
vcpkg_cmake_install ( )
2017-03-02 17:44:43 -05:00
vcpkg_copy_pdbs ( )
2021-11-15 18:10:29 +01:00
vcpkg_cmake_config_fixup ( )
2017-03-02 17:44:43 -05:00
2020-08-03 00:49:20 +02:00
if ( TOOL_NAMES )
vcpkg_copy_tools ( TOOL_NAMES ${ TOOL_NAMES } AUTO_CLEAN )
endif ( )
2019-04-02 23:35:44 -04:00
2020-08-03 00:49:20 +02:00
file ( REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share" )
file ( REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" )
2024-07-10 16:04:36 +02:00
file ( REMOVE "${CURRENT_PACKAGES_DIR}/include/ITK-5.4/vcl_where_root_dir.h" )
2017-03-02 17:44:43 -05:00
2023-01-09 06:34:52 +01:00
if ( "rtk" IN_LIST FEATURES )
2024-07-10 16:04:36 +02:00
vcpkg_replace_string ( "${CURRENT_PACKAGES_DIR}/include/ITK-5.4/rtkConfiguration.h" "#define RTK_BINARY_DIR \" ${ CURRENT_BUILDTREES_DIR } / ${ TARGET_TRIPLET } -rel/Modules/Remote/RTK\ "" "" )
vcpkg_replace_string ( "${CURRENT_PACKAGES_DIR}/include/ITK-5.4/rtkConfiguration.h" "#define RTK_DATA_ROOT \" ${ CURRENT_BUILDTREES_DIR } / ${ TARGET_TRIPLET } -rel/ExternalData/Modules/Remote/RTK/test\ "" "" )
2023-01-09 06:34:52 +01:00
endif ( )
2024-11-16 01:16:45 +01:00
vcpkg_list ( SET file_list
" $ { S O U R C E _ P A T H } / N O T I C E "
" $ { S O U R C E _ P A T H } / L I C E N S E "
)
if ( "cuda" IN_LIST FEATURES )
vcpkg_list ( APPEND file_list
" $ { S O U R C E _ P A T H } / C u d a C o m m o n L I C E N S E "
)
endif ( )
if ( "rtk" IN_LIST FEATURES )
vcpkg_list ( APPEND file_list
" $ { S O U R C E _ P A T H } / R T K C O P Y R I G H T . T X T "
)
endif ( )
vcpkg_install_copyright ( FILE_LIST ${ file_list } )