AfterRequest Example | Qt HTTP Server 6.4.1

- Qt 6.4
- Qt HTTP Server
- Qt HTTP Server Examples
- AfterRequest Example
- Qt 6.4.1 Reference Documentation

# AfterRequest Example

     # Generated from afterrequest.pro.

     cmake_minimum_required(VERSION 3.16)
     project(afterrequest LANGUAGES CXX)

     set(CMAKE_INCLUDE_CURRENT_DIR ON)

     set(CMAKE_AUTOMOC ON)
     set(CMAKE_AUTORCC ON)
     set(CMAKE_AUTOUIC ON)

     set(INSTALL_EXAMPLEDIR "examples/httpserver/afterrequest")

     find_package(Qt6 COMPONENTS HttpServer)

     qt_add_executable(afterrequest
         main.cpp
     )
     target_link_libraries(afterrequest PUBLIC
         Qt::HttpServer
     )

     install(TARGETS afterrequest
         RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
         BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
         LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
     )