Browse Source

Merge pull request #82 from JonnyPtn/master

Add install target to CMakeLists.txt
Lee Salzman 2 years ago
parent
commit
311360dbdd
1 changed files with 8 additions and 0 deletions
  1. 8 0
      CMakeLists.txt

+ 8 - 0
CMakeLists.txt

@@ -92,3 +92,11 @@ add_library(enet STATIC
 if (MINGW)
 if (MINGW)
     target_link_libraries(enet winmm ws2_32)
     target_link_libraries(enet winmm ws2_32)
 endif()
 endif()
+
+install(TARGETS enet
+    RUNTIME DESTINATION bin
+    ARCHIVE DESTINATION lib/static
+    LIBRARY DESTINATION lib)
+
+install(DIRECTORY include/
+        DESTINATION include)