aboutsummaryrefslogtreecommitdiff
path: root/ports/curl
diff options
context:
space:
mode:
Diffstat (limited to 'ports/curl')
-rw-r--r--ports/curl/portfile.cmake2
-rw-r--r--ports/curl/usage5
2 files changed, 7 insertions, 0 deletions
diff --git a/ports/curl/portfile.cmake b/ports/curl/portfile.cmake
index c770d3f25..eaeba787d 100644
--- a/ports/curl/portfile.cmake
+++ b/ports/curl/portfile.cmake
@@ -73,3 +73,5 @@ endif()
file(WRITE ${CURRENT_PACKAGES_DIR}/include/curl/curl.h "${CURL_H}")
vcpkg_copy_pdbs()
+
+file(COPY ${CMAKE_CURRENT_LIST_DIR}/usage DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})
diff --git a/ports/curl/usage b/ports/curl/usage
new file mode 100644
index 000000000..d43e7112e
--- /dev/null
+++ b/ports/curl/usage
@@ -0,0 +1,5 @@
+The package curl is compatible with built-in CMake targets:
+
+ find_package(CURL REQUIRED)
+ target_link_libraries(main PRIVATE ${CURL_LIBRARIES})
+ target_include_directories(main PRIVATE ${CURL_INCLUDE_DIRS})