32 lines
981 B
CMake
32 lines
981 B
CMake
# - Config file for the Drogon package
|
|
# It defines the following variables
|
|
# DROGON_INCLUDE_DIRS - include directories for Drogon
|
|
# DROGON_LIBRARIES - libraries to link against
|
|
# DROGON_EXECUTABLE - the drogon_ctl executable
|
|
# DROGON_FOUND
|
|
# This module defines the following IMPORTED target:
|
|
# Drogon::Drogon
|
|
|
|
@PACKAGE_INIT@
|
|
|
|
add_library(Drogon::Drogon INTERFACE IMPORTED GLOBAL)
|
|
|
|
if(NOT TRANTOR_FOUND)
|
|
# find trantor
|
|
find_package(Trantor REQUIRED)
|
|
endif()
|
|
|
|
# Our library dependencies (contains definitions for IMPORTED targets)
|
|
|
|
get_filename_component(DROGON_CMAKE_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
|
|
if(NOT TARGET drogon)
|
|
include("${DROGON_CMAKE_DIR}/DrogonTargets.cmake")
|
|
endif()
|
|
|
|
# These are IMPORTED targets created by DrogonTargets.cmake
|
|
target_link_libraries(Drogon::Drogon INTERFACE drogon)
|
|
|
|
get_target_property(DROGON_INCLUDE_DIRS drogon INTERFACE_INCLUDE_DIRECTORIES)
|
|
set(DROGON_LIBRARIES drogon)
|
|
set(DROGON_EXECUTABLE drogon_ctl)
|
|
set(DROGON_FOUND TRUE) |