Merge pull request #82 from JonnyPtn/master

Add install target to CMakeLists.txt
This commit is contained in:
Lee Salzman 2022-10-17 14:21:53 -04:00 committed by GitHub
commit 311360dbdd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)