From 9fda19e54b01919b07d70c944c42576c4f1ef0b9 Mon Sep 17 00:00:00 2001 From: "jonathan.r.paton@googlemail.com" Date: Thu, 21 Sep 2017 12:33:08 +0100 Subject: [PATCH] Add install target to CMakeLists.txt --- CMakeLists.txt | 8 ++++++++ 1 file changed, 8 insertions(+) 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)