Skip to content

Commit

Permalink
Port to Qt6
Browse files Browse the repository at this point in the history
  • Loading branch information
kleag committed Apr 19, 2024
1 parent 0402dcd commit 62b6fe7
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 7 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOMOC ON)
find_package(Qt6 REQUIRED COMPONENTS Core Network)
set(Qt6_LIBRARIES Qt6::Core Qt6::Network )
qt_standard_project_setup()
message("Found Qt6 ${Qt6Core_VERSION}")

message("\n\n\n{Qt6_LIBRARIES}=${Qt6_LIBRARIES} ")
Expand Down
3 changes: 2 additions & 1 deletion Dockerfile-debian12
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ ENV DEBIAN_FRONTEND=noninteractive
# Setup
RUN apt-get update -y -qq && apt-get install -y apt-utils wget bzip2 git gcc g++ cmake cmake-data ninja-build qt6-base-dev-tools qt6-declarative-dev packaging-dev -qq
RUN mkdir -p /src/
RUN git clone https://github.com/aymara/qhttpserver /src/qhttpserver
COPY . /src/qhttpserver
#RUN git clone https://github.com/aymara/qhttpserver /src/qhttpserver

RUN mkdir -p /src/qhttpserver/build

Expand Down
2 changes: 1 addition & 1 deletion examples/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
add_subdirectory(helloworld)
add_subdirectory(greeting)
# add_subdirectory(greeting)
#add_subdirectory(bodydata)
2 changes: 1 addition & 1 deletion examples/bodydata/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ SET(œ_EXE_SRCS

add_executable(bodydata_server ${bodydata_EXE_SRCS})

target_link_libraries(bodydata_server qhttpserver ${Qt5_LIBRARIES})
target_link_libraries(bodydata_server qhttpserver ${Qt6_LIBRARIES})

add_test(
NAME bodydata_Test
Expand Down
2 changes: 1 addition & 1 deletion examples/greeting/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ SET(greeting_EXE_SRCS

add_executable(greeting_server ${greeting_EXE_SRCS})

target_link_libraries(greeting_server qhttpserver ${Qt5_LIBRARIES})
target_link_libraries(greeting_server qhttpserver ${Qt6_LIBRARIES})

add_test(
NAME greeting_Test
Expand Down
2 changes: 1 addition & 1 deletion examples/helloworld/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ SET(helloworld_EXE_SRCS

add_executable(helloworld_server ${helloworld_EXE_SRCS})

target_link_libraries(helloworld_server qhttpserver ${Qt5_LIBRARIES})
target_link_libraries(helloworld_server qhttpserver ${Qt6_LIBRARIES})

add_test(
NAME helloworld_Test
Expand Down
2 changes: 1 addition & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ SET(qhttpserver_LIB_SRCS

add_library(qhttpserver SHARED ${qhttpserver_LIB_SRCS})

target_link_libraries(qhttpserver ${Qt5_LIBRARIES})
target_link_libraries(qhttpserver ${Qt6_LIBRARIES})

install(TARGETS qhttpserver DESTINATION ${LIB_INSTALL_DIR})

Expand Down
2 changes: 1 addition & 1 deletion src/qhttprequest.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class QHTTPSERVER_API QHttpRequest : public QObject
Q_PROPERTY(HeaderHash headers READ headers)
Q_PROPERTY(QString remoteAddress READ remoteAddress)
Q_PROPERTY(quint16 remotePort READ remotePort)
Q_PROPERTY(QString method READ method)
Q_PROPERTY(QString method READ methodString)
Q_PROPERTY(QUrl url READ url)
Q_PROPERTY(QString path READ path)
Q_PROPERTY(QString httpVersion READ httpVersion)
Expand Down

0 comments on commit 62b6fe7

Please sign in to comment.