early-access version 2853
This commit is contained in:
25
externals/vcpkg/ports/wintoast/CMakeLists.txt
vendored
Executable file
25
externals/vcpkg/ports/wintoast/CMakeLists.txt
vendored
Executable file
@@ -0,0 +1,25 @@
|
||||
cmake_minimum_required(VERSION 3.11)
|
||||
project(wintoast)
|
||||
|
||||
set(SRC_FILES
|
||||
src/wintoastlib.cpp
|
||||
)
|
||||
|
||||
add_library(wintoast ${SRC_FILES})
|
||||
|
||||
target_include_directories(wintoast PUBLIC
|
||||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/src>
|
||||
$<INSTALL_INTERFACE:include/wintoast>
|
||||
)
|
||||
|
||||
# Install targets
|
||||
install(TARGETS wintoast
|
||||
RUNTIME DESTINATION bin
|
||||
LIBRARY DESTINATION lib
|
||||
ARCHIVE DESTINATION lib
|
||||
)
|
||||
|
||||
# Install headers
|
||||
if (INSTALL_HEADERS)
|
||||
install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/src/wintoastlib.h DESTINATION include/wintoast)
|
||||
endif()
|
||||
25
externals/vcpkg/ports/wintoast/portfile.cmake
vendored
Executable file
25
externals/vcpkg/ports/wintoast/portfile.cmake
vendored
Executable file
@@ -0,0 +1,25 @@
|
||||
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
|
||||
)
|
||||
|
||||
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
|
||||
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
OPTIONS_RELEASE -DINSTALL_HEADERS=ON
|
||||
OPTIONS_DEBUG -DINSTALL_HEADERS=OFF
|
||||
|
||||
)
|
||||
|
||||
vcpkg_cmake_install()
|
||||
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
||||
|
||||
# Install license
|
||||
file(INSTALL "${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
||||
13
externals/vcpkg/ports/wintoast/vcpkg.json
vendored
Executable file
13
externals/vcpkg/ports/wintoast/vcpkg.json
vendored
Executable file
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"name": "wintoast",
|
||||
"version": "1.2.0",
|
||||
"port-version": 2,
|
||||
"description": "WinToast is a lightly library written in C++ which brings a complete integration of the modern toast notifications of Windows 8 & Windows 10.",
|
||||
"supports": "windows & !uwp",
|
||||
"dependencies": [
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user