2016-12-14 22:58:00 +08:00
|
|
|
include(vcpkg_common_functions)
|
|
|
|
|
2017-08-20 04:29:24 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO mm2/Little-CMS
|
|
|
|
REF lcms2.8
|
2017-09-13 04:32:26 +08:00
|
|
|
SHA512 22ee94aa3333db4248607d8aa84343d324e04b30c154c46672c6f668e14a369b9b72f2557b8465218b6e9a2676cf8fa37d617b4aa13a013dc2337197a599e63a
|
2017-08-20 04:29:24 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
2016-12-14 22:58:00 +08:00
|
|
|
|
2017-08-20 04:29:24 +08:00
|
|
|
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
|
2016-12-14 22:58:00 +08:00
|
|
|
|
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
2017-08-20 04:29:24 +08:00
|
|
|
PREFER_NINJA
|
2016-12-14 22:58:00 +08:00
|
|
|
OPTIONS_DEBUG
|
|
|
|
-DSKIP_INSTALL_HEADERS=ON
|
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
|
|
|
|
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/lcms RENAME copyright)
|
|
|
|
|
|
|
|
vcpkg_copy_pdbs()
|
2017-01-30 22:22:39 +08:00
|
|
|
|
|
|
|
#patch header files to fix import/export issues
|
|
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
|
|
|
|
vcpkg_apply_patches(
|
|
|
|
SOURCE_PATH ${CURRENT_PACKAGES_DIR}/include
|
|
|
|
PATCHES "${CMAKE_CURRENT_LIST_DIR}/shared.patch")
|
2017-08-20 04:29:24 +08:00
|
|
|
endif()
|