2017-03-02 17:44:43 -05:00
include ( vcpkg_common_functions )
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
2019-04-02 23:35:44 -04:00
R E F 9 0 6 7 3 6 b d 4 5 3 e 9 5 c c f 0 3 b 3 1 8 d 3 d 0 7 c b 7 8 8 4 2 8 5 1 6 1
S H A 5 1 2 8 a c 6 2 2 6 2 d 4 6 e 7 a c b b 0 e 5 b 2 e 9 6 4 2 9 2 e c 1 7 e 1 6 8 7 b b 1 6 2 b 8 c e c 6 6 6 e 5 b 6 7 a c b e 3 4 4 9 f 0 9 3 a 0 b 1 c 0 3 7 3 7 e 9 9 5 1 c b 8 8 2 4 8 e d 8 9 0 8 0 5 f f d 5 7 d f 6 e a e 2 1 2 2 0 4 8 8 6 2 0 d a 8 3 3 c 5 7
2017-10-11 15:48:41 -04:00
H E A D _ R E F m a s t e r
2019-05-07 07:37:56 +08:00
P A T C H E S f i x _ c o n f l i c t _ w i t h _ o p e n j p 2 _ p c . p a t c h
2017-03-02 17:44:43 -05:00
)
2018-04-30 14:25:11 -04:00
if ( "vtk" IN_LIST FEATURES )
2019-04-02 23:35:44 -04:00
set ( ITKVtkGlue ON )
2018-04-30 14:25:11 -04:00
else ( )
2019-04-02 23:35:44 -04:00
set ( ITKVtkGlue OFF )
2018-04-30 14:25:11 -04:00
endif ( )
2017-03-02 17:44:43 -05:00
# directory path length needs to be shorter than 50 characters
2018-04-30 14:25:11 -04: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-02 17:44:43 -05: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 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
- 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-11 17:36:49 -05: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-02 17:44:43 -05: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-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
2019-03-08 05:00:35 +09:00
# This should be turned on some day, however for now ITK does download specific versions so it shouldn't spontaneously break
2017-03-02 17:44:43 -05: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-11 17:36:49 -05:00
2019-03-08 05:00:35 +09: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
2019-05-02 22:57:43 -07:00
# I haven't tried Python wrapping in vcpkg
2017-12-11 17:36:49 -05:00
#-DITK_WRAP_PYTHON=ON
#-DITK_PYTHON_VERSION=3
2019-04-02 23:35:44 -04:00
- 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
- D M o d u l e _ I T K V t k G l u e = $ { I T K V t k G l u e } # optional feature
2017-12-11 17:36:49 -05:00
2017-03-02 17:44:43 -05: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
2019-05-07 07:37:56 +08:00
- D G D C M _ U S E _ S Y S T E M _ O P E N J P E G = O N #Use port openjpeg instead of own third-party
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 }
)
vcpkg_install_cmake ( )
vcpkg_copy_pdbs ( )
2017-12-11 17:36:49 -05:00
vcpkg_fixup_cmake_targets ( ) # combines release and debug build configurations
2019-04-02 23:35:44 -04:00
file ( RENAME ${ CURRENT_PACKAGES_DIR } /vcl_compiler_detection.h ${ CURRENT_PACKAGES_DIR } /include/ITK-5.0/vcl_compiler_detection.h )
2017-03-02 17:44:43 -05:00
file ( REMOVE_RECURSE ${ CURRENT_PACKAGES_DIR } /debug/share )
file ( REMOVE_RECURSE ${ CURRENT_PACKAGES_DIR } /debug/include )
2019-04-02 23:35:44 -04:00
file ( REMOVE_RECURSE ${ CURRENT_PACKAGES_DIR } /debug/vcl_compiler_detection.h )
2017-03-02 17:44:43 -05:00
# 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 )