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
2017-03-03 06:44:43 +08:00
)
# directory path length needs to be shorter than 50 characters
2017-10-12 03:48:41 +08:00
file ( RENAME ${ SOURCE_PATH } ${ CURRENT_BUILDTREES_DIR } /ITK )
set ( SOURCE_PATH "${CURRENT_BUILDTREES_DIR}/ITK" )
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
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
- 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
# I havn't tried Python wrapping in vcpkg
#-DITK_WRAP_PYTHON=ON
#-DITK_PYTHON_VERSION=3
# HDF5 must NOT be installed, otherwise it causes: ...\installed\x64-windows-static\include\H5Tpkg.h(25): fatal error C1189: #error: "Do not include this file outside the H5T package!"
- D I T K _ U S E _ S Y S T E M _ H D F 5 = O F F # if ON, causes: ...\buildtrees\itk\x64-windows-static-rel\Modules\ThirdParty\HDF5\src\itk_H5Cpp.h(25): fatal error C1083: Cannot open include file: 'H5Cpp.h': No such file or directory
# -DModule_ITKVtkGlue=ON # this option requires VTK to be a dependency in CONTROL file. VTK depends on HDF5!
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 )