mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-25 09:19:11 +08:00
2129bcd180
* support wchar_t* filename * bump control
49 lines
1.4 KiB
CMake
49 lines
1.4 KiB
CMake
include(vcpkg_common_functions)
|
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO DCMTK/dcmtk
|
|
REF 1967b13134308f311e6a827e616958c6a4da5bc9
|
|
SHA512 a63a773e339081720adb0f3260a3b21ee11cde8009b321c3f45eeb40402ff29bd580926fb44f0dd784ba8369e2597933196bdaa324517d91fa5201b11b7504c0
|
|
HEAD_REF master
|
|
PATCHES ${CMAKE_CURRENT_LIST_DIR}/dcmtk.patch
|
|
)
|
|
|
|
vcpkg_configure_cmake(
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
PREFER_NINJA
|
|
OPTIONS
|
|
-DDCMTK_WITH_DOXYGEN=OFF
|
|
-DDCMTK_WITH_ZLIB=OFF
|
|
-DDCMTK_WITH_OPENSSL=OFF
|
|
-DDCMTK_WITH_PNG=OFF
|
|
-DDCMTK_WITH_TIFF=OFF
|
|
-DDCMTK_WITH_XML=OFF
|
|
-DDCMTK_WITH_ICONV=OFF
|
|
-DDCMTK_FORCE_FPIC_ON_UNIX=ON
|
|
-DDCMTK_OVERWRITE_WIN32_COMPILER_FLAGS=OFF
|
|
-DDCMTK_ENABLE_BUILTIN_DICTIONARY=ON
|
|
-DDCMTK_ENABLE_PRIVATE_TAGS=ON
|
|
-DBUILD_APPS=OFF
|
|
-DDCMTK_ENABLE_CXX11=ON
|
|
-DDCMTK_WIDE_CHAR_FILE_IO_FUNCTIONS=ON
|
|
-DDCMTK_WIDE_CHAR_MAIN_FUNCTION=ON
|
|
-DCMAKE_DEBUG_POSTFIX="d"
|
|
OPTIONS_DEBUG
|
|
-DINSTALL_HEADERS=OFF
|
|
-DINSTALL_OTHER=OFF
|
|
)
|
|
|
|
vcpkg_install_cmake()
|
|
vcpkg_copy_pdbs()
|
|
|
|
vcpkg_fixup_cmake_targets()
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
|
|
|
# Handle copyright
|
|
file(INSTALL ${SOURCE_PATH}/COPYRIGHT DESTINATION ${CURRENT_PACKAGES_DIR}/share/dcmtk RENAME copyright)
|