2018-04-18 01:25:31 +08:00
include ( vcpkg_common_functions )
2019-05-29 00:35:54 +08:00
set ( BUILD_CORE_IMAGING OFF )
if ( "core_imaging" IN_LIST FEATURES )
set ( BUILD_CORE_IMAGING ON )
if ( EXISTS "${CURRENT_INSTALLED_DIR}/include/openjpeg.h" )
set ( BUILD_CORE_IMAGING OFF )
message ( WARNING "Can't build VXL CORE_IMAGING features with non built-in OpenJpeg. Please remove OpenJpeg, and try install VXL again if you need them." )
endif ( )
2018-11-12 18:55:47 +08:00
endif ( )
2018-04-18 01:25:31 +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
2018-04-18 05:46:50 +08:00
R E P O v x l / v x l
2020-02-11 08:08:57 +08:00
R E F d a c 1 c 7 e d 8 e 1 8 3 e 9 c 6 d e 8 b 9 2 8 c 8 b 0 2 9 4 a 7 b d 1 d 8 e e # v2.0.2
S H A 5 1 2 4 c 6 f 6 d c d 7 9 3 a 5 0 c b b c 9 c 7 f 6 1 c 5 6 1 e d 4 a 7 4 7 d e d 6 7 e 3 d c e b 0 9 7 9 2 9 9 8 c 0 f 0 d 4 2 9 4 4 4 5 a 4 4 1 f e d 6 6 8 d 5 9 2 9 7 5 6 0 f 1 9 6 2 7 4 b 1 c 2 5 5 9 3 c e 6 7 b 0 a a 7 5 9 7 c b b 7 7 3 3 2 8 e 8 6 1 2 c 0
2018-04-18 01:25:31 +08:00
H E A D _ R E F m a s t e r
2019-05-29 00:35:54 +08:00
P A T C H E S
f i x _ d e p e n d e n c y . p a t c h
2018-04-18 01:25:31 +08:00
)
2018-11-12 18:55:47 +08:00
set ( USE_WIN_WCHAR_T OFF )
2018-11-15 03:28:02 +08:00
if ( NOT VCPKG_CMAKE_SYSTEM_NAME OR VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore" )
2018-11-12 18:55:47 +08:00
set ( USE_WIN_WCHAR_T ON )
endif ( )
2018-04-18 01:25:31 +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-04-18 05:46:50 +08:00
O P T I O N S
- D B U I L D _ E X A M P L E S = O F F
2018-11-12 18:55:47 +08:00
- D B U I L D _ T E S T I N G = O F F
2019-05-29 00:35:54 +08:00
- D B U I L D _ C O R E _ I M A G I N G = $ { B U I L D _ C O R E _ I M A G I N G }
2018-11-12 18:55:47 +08:00
- D V X L _ F O R C E _ V 3 P _ B Z L I B 2 = O F F
- D V X L _ U S I N G _ N A T I V E _ B Z L I B 2 = T R U E # for disable build built-in bzip2 (v3p/bzlib/CMakeLists.txt#L10-L26)
- D V X L _ F O R C E _ V 3 P _ C L I P P E R = O N # TODO : need add clipper port to turn off
- D V X L _ F O R C E _ V 3 P _ D C M T K = O F F
- D V X L _ F O R C E _ V 3 P _ G E O T I F F = O F F
- D V X L _ F O R C E _ V 3 P _ J 2 K = O F F
- D V X L _ F O R C E _ V 3 P _ J P E G = O F F
- D V X L _ F O R C E _ V 3 P _ O P E N J P E G 2 = O N # TODO : need fix compile error when using openjpeg port to turn off
- D V X L _ F O R C E _ V 3 P _ P N G = O F F
- D V X L _ F O R C E _ V 3 P _ T I F F = O F F
- D V X L _ F O R C E _ V 3 P _ Z L I B = O F F
- D V X L _ U S E _ D C M T K = O F F # TODO : need fix dcmtk support to turn on
- D X V L _ U S E _ G E O T I F F = O N
- D V X L _ U S E _ W I N _ W C H A R _ T = $ { U S E _ W I N _ W C H A R _ T }
2018-04-18 01:25:31 +08:00
)
vcpkg_install_cmake ( )
2018-04-18 05:46:50 +08:00
vcpkg_fixup_cmake_targets ( CONFIG_PATH share/vxl/cmake )
2018-04-18 01:25:31 +08:00
vcpkg_copy_pdbs ( )
file ( REMOVE_RECURSE ${ CURRENT_PACKAGES_DIR } /debug/include )
file ( REMOVE_RECURSE ${ CURRENT_PACKAGES_DIR } /debug/share )
2019-01-12 03:15:34 +08:00
file ( INSTALL ${ SOURCE_PATH } /core/vxl_copyright.h DESTINATION ${ CURRENT_PACKAGES_DIR } /share/ ${ PORT } RENAME copyright )
2019-05-29 00:35:54 +08:00
#