2018-04-17 19:25:31 +02:00
include ( vcpkg_common_functions )
2019-05-28 18:35:54 +02: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 19:55:47 +09:00
endif ( )
2018-04-17 19:25:31 +02: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-17 14:46:50 -07:00
R E P O v x l / v x l
2018-11-12 19:55:47 +09:00
R E F v 1 . 1 8 . 0
S H A 5 1 2 6 6 6 6 d 6 4 7 b 2 e 7 0 1 0 b 9 1 c b 0 b 0 5 0 1 6 b 5 f 4 9 a e 4 6 d 1 9 8 f 6 b d 1 6 0 f e 1 3 f c 0 9 b c 6 7 4 e f f 5 b 9 3 7 3 3 1 f a 1 1 d 8 1 a 8 4 9 6 4 7 3 9 6 8 b 6 3 4 5 2 d 9 5 0 e e e 4 f c 2 5 1 2 1 5 2 a f 5 7 3 0 4 a 1 4 b e d 6 3 f
2018-04-17 19:25:31 +02:00
H E A D _ R E F m a s t e r
2019-05-28 18:35:54 +02: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-17 19:25:31 +02:00
)
2018-11-12 19:55:47 +09:00
set ( USE_WIN_WCHAR_T OFF )
2018-11-14 11:28:02 -08:00
if ( NOT VCPKG_CMAKE_SYSTEM_NAME OR VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore" )
2018-11-12 19:55:47 +09:00
set ( USE_WIN_WCHAR_T ON )
endif ( )
2018-04-17 19:25:31 +02: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-17 14:46:50 -07: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 19:55:47 +09:00
- D B U I L D _ T E S T I N G = O F F
2019-05-28 18:35:54 +02: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 19:55:47 +09: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-17 19:25:31 +02:00
)
vcpkg_install_cmake ( )
2018-04-17 14:46:50 -07:00
vcpkg_fixup_cmake_targets ( CONFIG_PATH share/vxl/cmake )
2018-04-17 19:25:31 +02:00
vcpkg_copy_pdbs ( )
file ( REMOVE_RECURSE ${ CURRENT_PACKAGES_DIR } /debug/include )
file ( REMOVE_RECURSE ${ CURRENT_PACKAGES_DIR } /debug/share )
2019-01-11 20:15:34 +01:00
file ( INSTALL ${ SOURCE_PATH } /core/vxl_copyright.h DESTINATION ${ CURRENT_PACKAGES_DIR } /share/ ${ PORT } RENAME copyright )
2019-05-28 18:35:54 +02:00
#