vcpkg/ports/robotraconteur/portfile.cmake
John Wason 73bc296b6f
[robotraconteur] Add robotraconteur and robotraconteur-companion ports (#36596)
* Add robotraconteur port

* version database

* Add robotraconteur-companion port

* version database

* Install usage

* Update manifests

* Add dbus and libusb dependencies on linux

* version database

* Add back vcpkg-cmake dependency

* version database

* Disable robotraconteur on linux

* version database

* usage newline

* Use vcpkg_cmake_config_fixup

* Add back linux support

* version database

* Improve check for libbluetooth using pkgconfig

* version database

* Change libbluetooth check to warning

* version database

* Set PACKAGE_NAME in vcpkg_cmake_config_fixup

* version database
2024-02-09 20:10:49 -08:00

39 lines
1.2 KiB
CMake

if(VCPKG_TARGET_IS_LINUX)
MESSAGE(WARNING "${PORT} requires libbluetooth-dev from the system package manager.\nTry: 'sudo yum install libbluetooth-dev ' (or sudo apt-get install libbluetooth-dev)")
endif()
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO robotraconteur/robotraconteur
REF v1.0.0
SHA512 c21dd0af579272c565dd66ca935aababfa3742db524fae66fe82c929561680608e5759ce954f31a8bbcb4ffb7c4e5314f2050b513ccddb8fb49a005c6cfa6d74
HEAD_REF master
)
vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH}
OPTIONS
-DBUILD_GEN=ON
-DBUILD_TESTING=OFF
)
vcpkg_cmake_install()
vcpkg_copy_tools(TOOL_NAMES RobotRaconteurGen AUTO_CLEAN)
vcpkg_copy_tool_dependencies(${CURRENT_PACKAGES_DIR}/tools/robotraconteur)
vcpkg_cmake_config_fixup(
PACKAGE_NAME RobotRaconteur
CONFIG_PATH "lib/cmake/RobotRaconteur"
)
vcpkg_copy_pdbs()
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
file(INSTALL "${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")