Skip to content

Commit

Permalink
misc fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
marty1885 committed Jun 26, 2023
1 parent 2375275 commit 9e9a3c1
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 15 deletions.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,7 @@ 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
install(FILES
${CMAKE_CURRENT_SOURCE_DIR}/cmake/FindGNUnet.cmake
${CMAKE_CURRENT_SOURCE_DIR}/cmake/Findidn.cmake
DESTINATION lib/cmake/gnunetpp)
3 changes: 2 additions & 1 deletion gnunetpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ target_compile_definitions(gnunetpp PUBLIC -DENABLE_NLS)
install(
DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
DESTINATION include
FILES_MATCHING PATTERN "*.hpp")
FILES_MATCHING PATTERN "*.hpp"
PATTERN "pch.hpp" EXCLUDE)
install(
TARGETS gnunetpp
LIBRARY DESTINATION lib
Expand Down
17 changes: 4 additions & 13 deletions gnunetppConfig.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,10 @@ include(CMakeFindDependencyMacro)
add_library(@PROJECT_NAME@::@PROJECT_NAME@ INTERFACE IMPORTED)
set_target_properties(@PROJECT_NAME@::@PROJECT_NAME@ PROPERTIES INTERFACE_INCLUDE_DIRECTORIES "${CMAKE_INSTALL_INCLUDEDIR}")

# Find dependencies
find_package(GNUnet REQUIRED)

target_link_libraries(@PROJECT_NAME@::@PROJECT_NAME@ INTERFACE
@PROJECT_NAME@
gnunetnamestore
gnunetgnsrecord
gnunetidentity
gnunetcore
gnunetutil
gnunetfs
gnunetdht
gnunetnse
gnunetcadet
gnunetpeerinfo
gnunetdatastore
gnunetgns
gnunetmessenger
GNUnet::GNUnet
)

0 comments on commit 9e9a3c1

Please sign in to comment.