2019-08-08 07:17:09 +00:00
|
|
|
# - 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
|
2020-02-26 04:36:46 +00:00
|
|
|
# Drogon_FOUND
|
2019-08-31 00:27:57 +00:00
|
|
|
# This module defines the following IMPORTED target:
|
|
|
|
# Drogon::Drogon
|
2019-08-08 07:17:09 +00:00
|
|
|
|
|
|
|
@PACKAGE_INIT@
|
|
|
|
|
2020-02-29 07:46:08 +00:00
|
|
|
include(CMakeFindDependencyMacro)
|
2020-03-18 11:54:48 +00:00
|
|
|
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR})
|
2020-02-29 07:46:08 +00:00
|
|
|
|
2020-03-18 11:54:48 +00:00
|
|
|
find_dependency(Jsoncpp REQUIRED)
|
|
|
|
find_dependency(Trantor REQUIRED)
|
2020-11-15 04:18:01 +00:00
|
|
|
if(NOT ${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD" AND NOT ${CMAKE_SYSTEM_NAME} STREQUAL "OpenBSD" AND NOT WIN32)
|
2020-03-18 11:54:48 +00:00
|
|
|
find_dependency(UUID REQUIRED)
|
2020-11-15 04:18:01 +00:00
|
|
|
endif(NOT ${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD" AND NOT ${CMAKE_SYSTEM_NAME} STREQUAL "OpenBSD" AND NOT WIN32)
|
2020-03-18 11:54:48 +00:00
|
|
|
find_dependency(ZLIB REQUIRED)
|
|
|
|
if(@pg_FOUND@)
|
|
|
|
find_dependency(pg)
|
|
|
|
endif()
|
|
|
|
if(@SQLite3_FOUND@)
|
|
|
|
find_dependency(SQLite3)
|
|
|
|
endif()
|
|
|
|
if(@MySQL_FOUND@)
|
|
|
|
find_dependency(MySQL)
|
|
|
|
endif()
|
|
|
|
if(@Boost_FOUND@)
|
|
|
|
find_dependency(Boost)
|
|
|
|
endif()
|
2020-04-04 10:15:15 +00:00
|
|
|
if(@Brotli_FOUND@)
|
|
|
|
find_dependency(Brotli)
|
|
|
|
endif()
|
2020-04-30 05:30:37 +00:00
|
|
|
if(@COZ-PROFILER_FOUND@)
|
|
|
|
find_dependency(coz-profiler)
|
|
|
|
endif()
|
2019-08-08 07:17:09 +00:00
|
|
|
|
|
|
|
# Our library dependencies (contains definitions for IMPORTED targets)
|
|
|
|
|
|
|
|
get_filename_component(DROGON_CMAKE_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
|
2019-09-26 11:33:58 +00:00
|
|
|
if(NOT TARGET Drogon::Drogon)
|
2019-08-08 07:17:09 +00:00
|
|
|
include("${DROGON_CMAKE_DIR}/DrogonTargets.cmake")
|
2020-10-12 13:51:39 +00:00
|
|
|
include("${DROGON_CMAKE_DIR}/DrogonUtilities.cmake")
|
2019-08-08 07:17:09 +00:00
|
|
|
endif()
|
|
|
|
|
2019-09-26 11:33:58 +00:00
|
|
|
get_target_property(DROGON_INCLUDE_DIRS Drogon::Drogon INTERFACE_INCLUDE_DIRECTORIES)
|
|
|
|
set(DROGON_LIBRARIES Drogon::Drogon)
|
2019-08-08 07:17:09 +00:00
|
|
|
set(DROGON_EXECUTABLE drogon_ctl)
|