aboutsummaryrefslogtreecommitdiff
path: root/ports/cpr/enable-install.patch
blob: da8d3ee733f27fa9b7d0b5ef61a9aad35a18e982 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff --git a/cpr/CMakeLists.txt b/cpr/CMakeLists.txt
index a6db5bd..b4982d1 100644
--- a/cpr/CMakeLists.txt
+++ b/cpr/CMakeLists.txt
@@ -45,3 +45,12 @@ add_library(${CPR_LIBRARIES}
 message(STATUS "Using CURL_LIBRARIES: ${CURL_LIBRARIES}.")
 target_link_libraries(${CPR_LIBRARIES}
     ${CURL_LIBRARIES})
+
+install(TARGETS ${CPR_LIBRARIES}
+    RUNTIME DESTINATION bin
+    LIBRARY DESTINATION lib
+    ARCHIVE DESTINATION lib
+)
+if(NOT DISABLE_INSTALL_HEADERS)
+    install(DIRECTORY ${CPR_INCLUDE_DIRS} DESTINATION include)
+endif()