mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-06-07 18:32:47 +08:00
[b64] Add target include directories and export config.cmake (#25037)
* [b64] Add target include directories and export config.cmake * Use unofficial-b64 Co-authored-by: Cheney-Wang <v-xincwa@microsoft.com>
This commit is contained in:
parent
3c0366e161
commit
9835eb1dfd
@ -18,18 +18,23 @@ if (BUILD_SHARED_LIBS)
|
|||||||
target_compile_definitions(b64 PRIVATE LIBB64_EXPORTS=1)
|
target_compile_definitions(b64 PRIVATE LIBB64_EXPORTS=1)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
target_include_directories(b64 PRIVATE include ${CMAKE_CURRENT_BINARY_DIR})
|
target_include_directories(b64
|
||||||
|
PRIVATE include ${CMAKE_CURRENT_BINARY_DIR}
|
||||||
|
INTERFACE $<INSTALL_INTERFACE:include>
|
||||||
|
)
|
||||||
|
|
||||||
set_property(TARGET b64
|
set_property(TARGET b64
|
||||||
PROPERTY PUBLIC_HEADER ${HEADER_FILES})
|
PROPERTY PUBLIC_HEADER ${HEADER_FILES})
|
||||||
|
|
||||||
install(TARGETS b64
|
install(TARGETS b64
|
||||||
EXPORT b64-targets
|
EXPORT unofficial-b64-config
|
||||||
LIBRARY DESTINATION lib
|
LIBRARY DESTINATION lib
|
||||||
PUBLIC_HEADER DESTINATION include/b64
|
PUBLIC_HEADER DESTINATION include/b64
|
||||||
)
|
)
|
||||||
|
|
||||||
install(EXPORT b64-targets
|
install(EXPORT unofficial-b64-config
|
||||||
FILE b64-targets.cmake
|
FILE unofficial-b64-config.cmake
|
||||||
DESTINATION lib/cmake/b64)
|
NAMESPACE unofficial::b64::
|
||||||
|
DESTINATION share/unofficial-b64
|
||||||
|
)
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@ vcpkg_cmake_install()
|
|||||||
|
|
||||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
||||||
|
|
||||||
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
|
vcpkg_cmake_config_fixup(PACKAGE_NAME unofficial-b64)
|
||||||
|
|
||||||
vcpkg_copy_pdbs()
|
vcpkg_copy_pdbs()
|
||||||
|
|
||||||
|
@ -2,7 +2,9 @@
|
|||||||
"$schema": "https://raw.githubusercontent.com/microsoft/vcpkg/master/scripts/vcpkg.schema.json",
|
"$schema": "https://raw.githubusercontent.com/microsoft/vcpkg/master/scripts/vcpkg.schema.json",
|
||||||
"name": "b64",
|
"name": "b64",
|
||||||
"version": "2.0.0.1",
|
"version": "2.0.0.1",
|
||||||
|
"port-version": 1,
|
||||||
"description": "libb64 is a library of ANSI C routines for fast encoding/decoding data into and from a base64-encoded format",
|
"description": "libb64 is a library of ANSI C routines for fast encoding/decoding data into and from a base64-encoded format",
|
||||||
|
"license": null,
|
||||||
"dependencies": [
|
"dependencies": [
|
||||||
{
|
{
|
||||||
"name": "vcpkg-cmake",
|
"name": "vcpkg-cmake",
|
||||||
|
@ -1,5 +1,10 @@
|
|||||||
{
|
{
|
||||||
"versions": [
|
"versions": [
|
||||||
|
{
|
||||||
|
"git-tree": "aeaf7d2076e25b321032c4fc88c22cbb46002a90",
|
||||||
|
"version": "2.0.0.1",
|
||||||
|
"port-version": 1
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"git-tree": "9f1b6b36747fb6349483bf78531123d4b1ec5d7d",
|
"git-tree": "9f1b6b36747fb6349483bf78531123d4b1ec5d7d",
|
||||||
"version": "2.0.0.1",
|
"version": "2.0.0.1",
|
||||||
|
@ -394,7 +394,7 @@
|
|||||||
},
|
},
|
||||||
"b64": {
|
"b64": {
|
||||||
"baseline": "2.0.0.1",
|
"baseline": "2.0.0.1",
|
||||||
"port-version": 0
|
"port-version": 1
|
||||||
},
|
},
|
||||||
"basisu": {
|
"basisu": {
|
||||||
"baseline": "1.11",
|
"baseline": "1.11",
|
||||||
|
Loading…
Reference in New Issue
Block a user