diff options
Diffstat (limited to 'ports/comms')
| -rw-r--r-- | ports/comms/portfile.cmake | 10 | ||||
| -rw-r--r-- | ports/comms/usage | 4 | ||||
| -rw-r--r-- | ports/comms/vcpkg.json | 1 |
3 files changed, 11 insertions, 4 deletions
diff --git a/ports/comms/portfile.cmake b/ports/comms/portfile.cmake index 5a2a6d2fa..d1526e236 100644 --- a/ports/comms/portfile.cmake +++ b/ports/comms/portfile.cmake @@ -16,9 +16,11 @@ vcpkg_configure_cmake( -DCC_NO_UNIT_TESTS=ON
)
vcpkg_install_cmake()
-
-file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
-file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
+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)
\ No newline at end of file +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)
\ No newline at end of file diff --git a/ports/comms/usage b/ports/comms/usage new file mode 100644 index 000000000..9273c0283 --- /dev/null +++ b/ports/comms/usage @@ -0,0 +1,4 @@ +The package comms provides CMake targets:
+
+ find_package(LibComms CONFIG REQUIRED)
+ target_link_libraries(main PRIVATE cc::comms)
diff --git a/ports/comms/vcpkg.json b/ports/comms/vcpkg.json index cabbd6dee..313580685 100644 --- a/ports/comms/vcpkg.json +++ b/ports/comms/vcpkg.json @@ -1,6 +1,7 @@ { "name": "comms", "version-string": "3.1.3", + "port-version": 1, "description": "COMMS is the C++(11) headers only, platform independent library, which makes the implementation of a communication protocol to be an easy and relatively quick process.", "homepage": "https://commschamp.github.io/", "documentation": "https://github.com/commschamp/comms_champion" |
