Skip to content

Commit

Permalink
fix cmake find script
Browse files Browse the repository at this point in the history
  • Loading branch information
marty1885 committed Jul 20, 2023
1 parent 9e9a3c1 commit 80843c0
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
7 changes: 6 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ configure_package_config_file(
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/gnunetppConfig.cmake
DESTINATION lib/cmake/gnunetpp)
install(FILES
${CMAKE_CURRENT_SOURCE_DIR}/cmake/FindGNUnet.cmake
${CMAKE_CURRENT_SOURCE_DIR}/cmake/Findidn.cmake
DESTINATION lib/cmake/gnunetpp)
install(FILES
${CMAKE_CURRENT_SOURCE_DIR}/cmake/FindGNUnet.cmake
DESTINATION lib/cmake/GNUnet)
install(FILES
${CMAKE_CURRENT_SOURCE_DIR}/cmake/Findidn.cmake
DESTINATION lib/cmake/idn)
1 change: 1 addition & 0 deletions gnunetpp/gnunetpp-peerinfo.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#include "gnunetpp-peerinfo.hpp"
#include "gnunetpp-crypto.hpp"
#include <iostream>
#include <iomanip>

using namespace gnunetpp;

Expand Down
3 changes: 3 additions & 0 deletions gnunetppConfig.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ add_library(@PROJECT_NAME@::@PROJECT_NAME@ INTERFACE IMPORTED)
set_target_properties(@PROJECT_NAME@::@PROJECT_NAME@ PROPERTIES INTERFACE_INCLUDE_DIRECTORIES "${CMAKE_INSTALL_INCLUDEDIR}")

# Find dependencies
set(MODULE_PATH_BACKUP ${CMAKE_MODULE_PATH})
set(CMAKE_MODULE_PATH @CMAKE_INSTALL_PREFIX@/lib/cmake/idn @CMAKE_INSTALL_PREFIX@/lib/cmake/gnunet @CMAKE_INSTALL_PREFIX@/lib/cmake/GNUnet ${CMAKE_MODULE_PATH})
find_package(GNUnet REQUIRED)
set(CMAKE_MODULE_PATH ${MODULE_PATH_BACKUP})

target_link_libraries(@PROJECT_NAME@::@PROJECT_NAME@ INTERFACE
@PROJECT_NAME@
Expand Down

0 comments on commit 80843c0

Please sign in to comment.