2017-03-03 06:44:43 +08:00
include ( vcpkg_common_functions )
2017-10-12 03:48:41 +08: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
2017-12-12 06:36:49 +08:00
R E F d 9 2 8 7 3 e 3 3 e 8 a 5 4 e 9 3 3 e 4 4 5 b 9 2 1 5 1 1 9 1 f 0 2 f e a b 4 2
S H A 5 1 2 0 e 3 e b d 2 7 5 7 1 5 4 3 e 1 c 4 9 7 3 7 7 d d 9 5 7 6 a 9 b b 0 7 1 1 1 2 9 b e 1 2 1 3 1 1 0 9 f e 9 b 3 c 8 4 1 3 6 5 5 a d 1 4 c e 4 d 9 a c 6 e 2 8 1 b a c 8 3 c 5 7 e 6 0 3 2 b 6 1 4 b c 9 f f 5 3 e d 3 5 7 d 8 3 1 5 4 4 c a 5 2 f 4 1 5 1 3 b 6 2
2017-10-12 03:48:41 +08:00
H E A D _ R E F m a s t e r
2019-03-08 04:00:35 +08:00
P A T C H E S h d f 5 _ c o n f i g _ m o d e _ f i n d _ p a c k a g e . p a t c h
2017-03-03 06:44:43 +08:00
)
2018-05-01 02:25:11 +08:00
if ( "vtk" IN_LIST FEATURES )
set ( ITKVtkGlue ON )
else ( )
set ( ITKVtkGlue OFF )
endif ( )
2017-03-03 06:44:43 +08:00
# directory path length needs to be shorter than 50 characters
2018-05-01 02:25:11 +08:00
set ( ITK_BUILD_DIR ${ CURRENT_BUILDTREES_DIR } /ITK )
if ( EXISTS ${ ITK_BUILD_DIR } )
file ( REMOVE_RECURSE ${ ITK_BUILD_DIR } )
endif ( )
file ( RENAME ${ SOURCE_PATH } ${ ITK_BUILD_DIR } )
set ( SOURCE_PATH "${ITK_BUILD_DIR}" )
2017-03-03 06:44:43 +08:00
vcpkg_configure_cmake (
S O U R C E _ P A T H $ { S O U R C E _ P A T H }
P R E F E R _ N I N J A
2018-07-13 21:40:16 +08: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-03 06:44:43 +08: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
- 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
- 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
- D I T K _ L E G A C Y _ R E M O V E = O N
2017-12-12 06:36:49 +08:00
- D I T K _ F U T U R E _ L E G A C Y _ R E M O V E = O N
2017-03-03 06:44:43 +08:00
- D I T K _ U S E _ 6 4 B I T S _ I D S = O N
- 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-12 06:36:49 +08: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-03 06:44:43 +08: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-03-08 04:00:35 +08:00
# This should be turned on some day, however for now ITK does download specific versions so it shouldn't spontaneously break
2017-03-03 06:44:43 +08:00
- D I T K _ F O R B I D _ D O W N L O A D S = O F F
2017-12-12 06:36:49 +08:00
2019-03-08 04:00:35 +08: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-12-12 06:36:49 +08:00
# I havn't tried Python wrapping in vcpkg
#-DITK_WRAP_PYTHON=ON
#-DITK_PYTHON_VERSION=3
2019-03-08 04:00:35 +08:00
- D I T K _ U S E _ S Y S T E M _ H D F 5 = O N
- D M o d u l e _ I T K V t k G l u e = O N # this option requires VTK to be a dependency in CONTROL file. VTK depends on HDF5!
2017-12-12 06:36:49 +08:00
2017-03-03 06:44:43 +08:00
- D M o d u l e _ I O S T L = O N # example how to turn on a non-default module
- D M o d u l e _ M o r p h o l o g i c a l C o n t o u r I n t e r p o l a t i o n = O N # example how to turn on a remote module
- D M o d u l e _ R L E I m a g e = O N # example how to turn on a remote module
$ { A D D I T I O N A L _ O P T I O N S }
)
vcpkg_install_cmake ( )
vcpkg_copy_pdbs ( )
2017-12-12 06:36:49 +08:00
vcpkg_fixup_cmake_targets ( ) # combines release and debug build configurations
2017-03-03 06:44:43 +08:00
file ( REMOVE_RECURSE ${ CURRENT_PACKAGES_DIR } /debug/share )
file ( REMOVE_RECURSE ${ CURRENT_PACKAGES_DIR } /debug/include )
# Handle copyright
file ( COPY ${ SOURCE_PATH } /LICENSE DESTINATION ${ CURRENT_PACKAGES_DIR } /share/itk )
file ( RENAME ${ CURRENT_PACKAGES_DIR } /share/itk/LICENSE ${ CURRENT_PACKAGES_DIR } /share/itk/copyright )