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()
|
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()
|
2021-03-13 11:13:54 +00:00
|
|
|
if(@Hiredis_FOUND@)
|
|
|
|
find_dependency(Hiredis)
|
|
|
|
endif()
|
2023-03-13 14:23:32 +00:00
|
|
|
if(@yaml-cpp_FOUND@)
|
2023-03-08 16:17:11 +00:00
|
|
|
find_dependency(yaml-cpp)
|
|
|
|
endif()
|
2022-06-29 09:29:20 +00:00
|
|
|
if(@BUILD_SHARED_LIBS@)
|
2021-04-09 02:17:28 +00:00
|
|
|
find_dependency(Threads)
|
|
|
|
endif()
|
2021-08-24 08:34:07 +00:00
|
|
|
if(@HAS_STD_FILESYSTEM_PATH@)
|
|
|
|
find_dependency(Filesystem)
|
|
|
|
find_package(Filesystem COMPONENTS Final REQUIRED)
|
|
|
|
endif()
|
2019-08-08 07:17:09 +00:00
|
|
|
|
2023-03-08 16:17:11 +00:00
|
|
|
|
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")
|
2021-07-17 14:16:03 +00:00
|
|
|
include("${DROGON_CMAKE_DIR}/ParseAndAddDrogonTests.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)
|