Skip to content

Commit

Permalink
CMake: Improve install instructions (#244)
Browse files Browse the repository at this point in the history
  • Loading branch information
Croydon authored Apr 24, 2024
1 parent 5857b13 commit 4ce1625
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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}
)

0 comments on commit 4ce1625

Please sign in to comment.