Add support for XEP-0100 jabber:iq:gateway

This commit is contained in:
Luca Matei Pintilie
2026-08-02 18:12:11 +02:00
parent ad14748a30
commit dbafe37e13
17 changed files with 323 additions and 5 deletions
+13
View File
@@ -131,6 +131,12 @@ elseif(NOT WITHOUT_POSTGRESQL)
find_package(PQ)
endif()
if(WITH_CURL)
find_package(CURL REQUIRED)
elseif(NOT WITHOUT_CURL)
find_package(CURL)
endif()
#
## Set all the include directories, depending on what libraries are used
#
@@ -146,6 +152,9 @@ endif()
if(UDNS_FOUND)
include_directories(${UDNS_INCLUDE_DIRS})
endif()
if(CURL_FOUND)
include_directories(${CURL_INCLUDE_DIRS})
endif()
# To be able to include the config.h and other files generated by cmake
include_directories("${CMAKE_CURRENT_BINARY_DIR}/src/")
@@ -270,6 +279,10 @@ if(UDNS_FOUND)
target_link_libraries(${PROJECT_NAME} ${UDNS_LIBRARIES})
target_link_libraries(test_suite ${UDNS_LIBRARIES})
endif()
if(CURL_FOUND)
target_link_libraries(${PROJECT_NAME} ${CURL_LIBRARIES})
target_link_libraries(test_suite ${CURL_LIBRARIES})
endif()
if(LIBIDN_FOUND)
target_link_libraries(${PROJECT_NAME} ${LIBIDN_LIBRARIES})
target_link_libraries(test_suite ${LIBIDN_LIBRARIES})