2021-08-29 14:20:45 +00:00
|
|
|
@PACKAGE_INIT@
|
|
|
|
|
|
|
|
include(CMakeFindDependencyMacro)
|
2022-06-22 16:08:13 +00:00
|
|
|
|
|
|
|
get_filename_component(CROW_CMAKE_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
|
|
|
|
|
2022-06-30 11:57:37 +00:00
|
|
|
list(APPEND CMAKE_MODULE_PATH ${CROW_CMAKE_DIR})
|
2022-06-22 16:08:13 +00:00
|
|
|
find_dependency(asio)
|
|
|
|
list(REMOVE_AT CMAKE_MODULE_PATH -1)
|
2021-08-29 14:20:45 +00:00
|
|
|
|
2022-04-03 21:42:13 +00:00
|
|
|
set(CROW_INSTALLED_FEATURES "@CROW_FEATURES@")
|
|
|
|
|
|
|
|
if(NOT DEFINED CROW_FEATURES)
|
|
|
|
set(CROW_FEATURES ${CROW_INSTALLED_FEATURES})
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if("compression" IN_LIST CROW_FEATURES)
|
2021-08-29 14:20:45 +00:00
|
|
|
find_dependency(ZLIB)
|
|
|
|
endif()
|
|
|
|
|
2022-04-03 21:42:13 +00:00
|
|
|
if("ssl" IN_LIST CROW_FEATURES)
|
2021-08-29 14:20:45 +00:00
|
|
|
find_dependency(OpenSSL)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
include("${CMAKE_CURRENT_LIST_DIR}/CrowTargets.cmake")
|
|
|
|
check_required_components("@PROJECT_NAME@")
|
2021-09-30 19:05:42 +00:00
|
|
|
|
|
|
|
get_target_property(_CROW_ILL Crow::Crow INTERFACE_LINK_LIBRARIES)
|
|
|
|
get_target_property(_CROW_ICD Crow::Crow INTERFACE_COMPILE_DEFINITIONS)
|
|
|
|
|
|
|
|
list(REMOVE_ITEM _CROW_ILL "ZLIB::ZLIB" "OpenSSL::SSL")
|
|
|
|
list(REMOVE_ITEM _CROW_ICD "CROW_ENABLE_SSL" "CROW_ENABLE_COMPRESSION")
|
|
|
|
|
2022-04-03 21:42:13 +00:00
|
|
|
if("compression" IN_LIST CROW_FEATURES)
|
2021-09-30 19:05:42 +00:00
|
|
|
list(APPEND _CROW_ILL "ZLIB::ZLIB")
|
|
|
|
list(APPEND _CROW_ICD "CROW_ENABLE_COMPRESSION")
|
|
|
|
endif()
|
|
|
|
|
2022-04-03 21:42:13 +00:00
|
|
|
if("ssl" IN_LIST CROW_FEATURES)
|
2021-09-30 19:05:42 +00:00
|
|
|
list(APPEND _CROW_ILL "OpenSSL::SSL")
|
|
|
|
list(APPEND _CROW_ICD "CROW_ENABLE_SSL")
|
|
|
|
endif()
|
|
|
|
|
|
|
|
set_target_properties(Crow::Crow PROPERTIES
|
|
|
|
INTERFACE_COMPILE_DEFINITIONS "${_CROW_ICD}"
|
|
|
|
INTERFACE_LINK_LIBRARIES "${_CROW_ILL}"
|
|
|
|
)
|