vcpkg/ports/wintoast/portfile.cmake

26 lines
733 B
CMake
Raw Normal View History

vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO mohabouje/WinToast
REF v1.2.0
SHA512 d8bd44439100772929eb8a4eb4aebfd66fa54562c838eb4c081a382dc1d73c545faa6d9675e320864d9b533e4a0c4a673e44058c7f643ccd56ec90830cdfaf45
HEAD_REF master
)
2022-01-12 06:27:35 +08:00
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
2022-01-12 06:27:35 +08:00
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS_RELEASE -DINSTALL_HEADERS=ON
OPTIONS_DEBUG -DINSTALL_HEADERS=OFF
)
2022-01-12 06:27:35 +08:00
vcpkg_cmake_install()
2022-01-12 06:27:35 +08:00
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
# Install license
2022-01-12 06:27:35 +08:00
file(INSTALL "${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)