mirror of
https://github.com/lsalzman/enet
synced 2024-11-21 06:25:59 -07:00
CMake: Improve install instructions (#244)
This commit is contained in:
parent
5857b13df1
commit
4ce1625b8a
1 changed files with 8 additions and 6 deletions
|
@ -98,10 +98,12 @@ if (WIN32)
|
||||||
target_link_libraries(enet winmm ws2_32)
|
target_link_libraries(enet winmm ws2_32)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
include(GNUInstallDirs)
|
||||||
install(TARGETS enet
|
install(TARGETS enet
|
||||||
RUNTIME DESTINATION bin
|
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||||
ARCHIVE DESTINATION lib/static
|
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||||
LIBRARY DESTINATION lib)
|
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
||||||
|
)
|
||||||
install(DIRECTORY include/
|
install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/include/enet
|
||||||
DESTINATION include)
|
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
|
||||||
|
)
|
||||||
|
|
Loading…
Reference in a new issue