CMake: Improve install instructions (#244)

This commit is contained in:
Michael Keck 2024-04-24 07:43:23 +02:00 committed by GitHub
parent 5857b13df1
commit 4ce1625b8a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -98,10 +98,12 @@ if (WIN32)
target_link_libraries(enet winmm ws2_32)
endif()
include(GNUInstallDirs)
install(TARGETS enet
RUNTIME DESTINATION bin
ARCHIVE DESTINATION lib/static
LIBRARY DESTINATION lib)
install(DIRECTORY include/
DESTINATION include)
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
)
install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/include/enet
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
)