2019-06-19 07:27:42 +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 l a d i s l a v - z e z u l a / C a s c L i b
2024-06-07 17:52:01 +08:00
R E F 1 6 2 3 3 4 8 5 1 7 3 5 2 f f 0 d 6 3 6 4 d 4 7 5 3 3 c 0 d 7 f 1 1 8 b 4 6 e 1
S H A 5 1 2 1 b 6 d d 7 7 a 3 9 9 f f 2 1 a 2 7 8 d 1 a c 6 8 e f a 1 4 1 7 f 2 a 9 4 7 2 b 2 4 1 4 0 1 d 3 f 6 c b 8 f 0 1 e a 7 0 2 b 3 2 b 4 2 9 6 0 1 2 b b 7 1 a e 6 2 a 9 3 2 f 9 b 0 f a 2 b 6 d 3 0 3 5 b e f e 6 f 3 b a 0 d 5 6 7 e 8 5 a c 7 4 7 c 5 0 3 b 0 7 c
2019-06-19 07:27:42 +08:00
H E A D _ R E F m a s t e r
)
2021-11-18 04:27:02 +08:00
string ( COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" CASC_BUILD_SHARED_LIB )
string ( COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" CASC_BUILD_STATIC_LIB )
2019-06-19 07:27:42 +08:00
2024-06-07 17:52:01 +08:00
set ( CASC_UNICODE OFF )
if ( VCPKG_TARGET_IS_WINDOWS )
message ( STATUS "This version of CascLib is built in ASCII mode. To switch to UNICODE version, create an overlay port of this with CASC_UNICODE set to ON." )
message ( STATUS "This recipe is at ${CMAKE_CURRENT_LIST_DIR}" )
message ( STATUS "See the overlay ports documentation at https://github.com/microsoft/vcpkg/blob/master/docs/specifications/ports-overlay.md" )
endif ( )
2021-11-18 04:27:02 +08:00
vcpkg_cmake_configure (
S O U R C E _ P A T H " $ { S O U R C E _ P A T H } "
O P T I O N S
2024-06-07 17:52:01 +08:00
- D C M A K E _ R E Q U I R E _ F I N D _ P A C K A G E _ Z L I B = O N
2021-11-18 04:27:02 +08:00
- D C A S C _ B U I L D _ S H A R E D _ L I B = $ { C A S C _ B U I L D _ S H A R E D _ L I B }
- D C A S C _ B U I L D _ S T A T I C _ L I B = $ { C A S C _ B U I L D _ S T A T I C _ L I B }
2024-06-07 17:52:01 +08:00
- D C A S C _ U N I C O D E = $ { C A S C _ U N I C O D E }
2019-06-19 07:27:42 +08:00
)
2021-11-18 04:27:02 +08:00
vcpkg_cmake_install ( )
vcpkg_copy_pdbs ( )
vcpkg_cmake_config_fixup ( CONFIG_PATH lib/cmake/CascLib )
2019-06-19 07:27:42 +08:00
2021-11-18 04:27:02 +08:00
file ( REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" )
2019-08-03 04:31:48 +08:00
2021-11-18 04:27:02 +08:00
file ( INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright )