-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgnunetppConfig.cmake.in
31 lines (25 loc) · 1.08 KB
/
gnunetppConfig.cmake.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# - Config file for gnunetpp
# It defines the following variables
# GNUNETPP_INCLUDE_DIRS - include directories for GNUnet++
# GNUNETPP_LIBRARIES - libraries to link against
# gnunetpp_FOUND
# This module defines the following IMPORTED target:
# gnunetpp::gnunetpp
@PACKAGE_INIT@
if(NOT "@PROJECT_NAME@_FOUND")
set("@PROJECT_NAME@_FOUND" TRUE)
endif()
include(CMakeFindDependencyMacro)
# include("${CMAKE_CURRENT_LIST_DIR}/@PROJECT_NAME@Targets.cmake")
# Create an imported target for your package
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@
GNUnet::GNUnet
)