aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
author[email protected] <[email protected]>2017-09-21 12:33:08 +0100
committerJonny Paton (SI) <[email protected]>2021-05-14 10:54:52 +0100
commit9fda19e54b01919b07d70c944c42576c4f1ef0b9 (patch)
treea31dd6b5d19be1e0d0ff2ba5bdf69f356555a7ec
parentcf735e639e5c9e3d2d84d71f1dbf789e8c2f3fd0 (diff)
downloadenet-9fda19e54b01919b07d70c944c42576c4f1ef0b9.tar.gz
enet-9fda19e54b01919b07d70c944c42576c4f1ef0b9.zip
Add install target to CMakeLists.txt
-rw-r--r--CMakeLists.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 6f7fc27..276ddd9 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -92,3 +92,11 @@ add_library(enet STATIC
if (MINGW)
target_link_libraries(enet winmm ws2_32)
endif()
+
+install(TARGETS enet
+ RUNTIME DESTINATION bin
+ ARCHIVE DESTINATION lib/static
+ LIBRARY DESTINATION lib)
+
+install(DIRECTORY include/
+ DESTINATION include)