Skip to content
Snippets Groups Projects
Commit 22f27a6c authored by Adrien Béraud's avatar Adrien Béraud
Browse files

cmake: generate opendhtConfig.cmake

parent c72ea8ce
Branches
Tags
No related merge requests found
......@@ -123,7 +123,7 @@ if (OPENDHT_STATIC)
target_link_libraries(opendht-static -flto -fuse-linker-plugin)
endif ()
target_link_libraries(opendht-static gnutls nettle)
install (TARGETS opendht-static DESTINATION ${CMAKE_INSTALL_LIBDIR})
install (TARGETS opendht-static DESTINATION ${CMAKE_INSTALL_LIBDIR} EXPORT opendht)
endif ()
if (OPENDHT_SHARED)
......@@ -138,7 +138,7 @@ if (OPENDHT_SHARED)
target_link_libraries(opendht -flto -fuse-linker-plugin)
endif ()
target_link_libraries(opendht gnutls nettle)
install (TARGETS opendht DESTINATION ${CMAKE_INSTALL_LIBDIR})
install (TARGETS opendht DESTINATION ${CMAKE_INSTALL_LIBDIR} EXPORT opendht)
endif ()
if (OPENDHT_TOOLS)
......@@ -152,3 +152,4 @@ endif ()
install (DIRECTORY include DESTINATION ${CMAKE_INSTALL_PREFIX})
install (FILES ${CMAKE_CURRENT_BINARY_DIR}/opendht.pc DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig)
install (EXPORT opendht DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/opendht FILE opendhtConfig.cmake)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment