mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-28 21:51:48 +08:00
1200c2237d
* [clipboardcxx] Add new port * Run x-add-version * license * Update clipboardcxx.json * Add homepage * update version * Update ports/clipboardcxx/vcpkg.json Co-authored-by: JonLiu1993 <63675417+JonLiu1993@users.noreply.github.com> * Update and rename ports/clipboardcxx/portfile.cmake to ports/clipboardxx/portfile.cmake * Rename ports/clipboardcxx/vcpkg.json to ports/clipboardxx/vcpkg.json * Rename clipboardcxx.json to clipboardxx.json * Update baseline.json * Update portfile.cmake * Update vcpkg.json * Update clipboardxx.json * . * Update clipboardxx.json * Nicole CRs - add `supports: !osx` - add `unofficial-clipboardxx-config.cmake` Co-authored-by: Jonliu1993 <13720414433@163.com> Co-authored-by: JonLiu1993 <63675417+JonLiu1993@users.noreply.github.com> Co-authored-by: nicole mazzuca <mazzucan@outlook.com>
20 lines
614 B
CMake
20 lines
614 B
CMake
get_filename_component(_IMPORT_PREFIX "${CMAKE_CURRENT_LIST_FILE}" PATH)
|
|
get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
|
|
get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
|
|
if(_IMPORT_PREFIX STREQUAL "/")
|
|
set(_IMPORT_PREFIX "")
|
|
endif()
|
|
|
|
add_library(unofficial::ClipboardXX INTERFACE IMPORTED)
|
|
set_target_properties(unofficial::ClipboardXX PROPERTIES
|
|
INTERFACE_INCLUDE_DIRECTORIES "${PACKAGE_PREFIX_DIR}/include"
|
|
)
|
|
|
|
if("@VCPKG_TARGET_IS_LINUX@")
|
|
set_target_properties(unofficial::ClipboardXX PROPERTIES
|
|
INTERFACE_LINK_LIBRARIES "xcb;pthread"
|
|
)
|
|
endif()
|
|
|
|
unset(_IMPORT_PREFIX)
|