2020-06-27 06:06:30 +08:00
|
|
|
vcpkg_from_sourceforge(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO qwt/qwt
|
2021-07-28 07:25:52 +08:00
|
|
|
REF 6.2.0
|
|
|
|
FILENAME "qwt-6.2.0.zip"
|
|
|
|
SHA512 a3946c6e23481b5a2193819a1c1298db5a069d514ca60de54accb3a249403f5acd778172ae6fae24fae252767b1e58deba524de6225462f1bafd7c947996aae9
|
2019-08-02 08:54:45 +08:00
|
|
|
)
|
2017-01-06 06:39:00 +08:00
|
|
|
|
2019-08-02 08:54:45 +08:00
|
|
|
vcpkg_configure_qmake(
|
2021-07-28 07:25:52 +08:00
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2019-08-02 08:54:45 +08:00
|
|
|
OPTIONS
|
|
|
|
CONFIG+=${VCPKG_LIBRARY_LINKAGE}
|
|
|
|
)
|
2017-12-31 07:12:22 +08:00
|
|
|
|
2019-12-23 22:10:12 +08:00
|
|
|
if (VCPKG_TARGET_IS_WINDOWS)
|
|
|
|
vcpkg_install_qmake(
|
2019-09-10 02:29:33 +08:00
|
|
|
RELEASE_TARGETS sub-src-release_ordered
|
|
|
|
DEBUG_TARGETS sub-src-debug_ordered
|
|
|
|
)
|
2019-12-23 22:10:12 +08:00
|
|
|
else ()
|
|
|
|
vcpkg_install_qmake(
|
2019-09-10 02:29:33 +08:00
|
|
|
RELEASE_TARGETS sub-src-all-ordered
|
|
|
|
DEBUG_TARGETS sub-src-all-ordered
|
|
|
|
)
|
|
|
|
endif()
|
2017-01-06 06:39:00 +08:00
|
|
|
|
2020-09-12 03:53:06 +08:00
|
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
|
|
|
|
endif()
|
|
|
|
|
2017-12-31 07:12:22 +08:00
|
|
|
#Install the header files
|
2021-07-28 07:25:52 +08:00
|
|
|
file(GLOB HEADER_FILES "${SOURCE_PATH}/src/*.h")
|
|
|
|
file(INSTALL ${HEADER_FILES} DESTINATION "${CURRENT_PACKAGES_DIR}/include/${PORT}")
|
2017-01-06 06:39:00 +08:00
|
|
|
|
|
|
|
# Handle copyright
|
2021-07-28 07:25:52 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|