Add install target to CMakeLists.txt

This commit is contained in:
jonathan.r.paton@googlemail.com 2017-09-21 12:33:08 +01:00 committed by Jonny Paton (SI)
parent cf735e639e
commit 9fda19e54b

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)