mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-27 20:59:45 +08:00
e1417916bc
* set include directory correctly * Revert "set include directory correctly" This reverts commitbde9f29021
. * try suggested fix * try changes * apply fix for comms-ublox * fix commsdsl * try moving in port dir * Revert "try moving in port dir" This reverts commit93546df688
. * set port version * fix port version Co-authored-by: Victor Romero <romerosanchezv@gmail.com> * add usage file to comms * add line to usage Co-authored-by: Victor Romero <romerosanchezv@gmail.com>
26 lines
1000 B
CMake
26 lines
1000 B
CMake
#header-only library
|
|
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO commschamp/comms_champion
|
|
REF v3.1.3
|
|
SHA512 80aa3e0e53f3de21b8dcb4f02765f59ff58fc8c1b9e21beb09de26a3dd07fc4d6a3bc9fe78fb1c6cc633caabb1dd088f220d077b4a3a0d534cb1d243959c5a08
|
|
HEAD_REF master
|
|
)
|
|
|
|
vcpkg_configure_cmake(
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
PREFER_NINJA
|
|
OPTIONS
|
|
-DCC_COMMS_LIB_ONLY=ON
|
|
-DCC_NO_UNIT_TESTS=ON
|
|
)
|
|
vcpkg_install_cmake()
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/LibComms/cmake TARGET_PATH share/LibComms)
|
|
# currently this is only a header only library. after moving lib/LibComms to share this lib path will be empty
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
|
|
|
|
# Handle copyright
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
|
configure_file(${CMAKE_CURRENT_LIST_DIR}/usage ${CURRENT_PACKAGES_DIR}/share/${PORT}/usage @ONLY) |