Skip to content

Commit

Permalink
[cpp-qt-client] Fix CMakeLists.txt.mustache and CMakeLists.txt for Qt5
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinDelille committed Jan 27, 2024
1 parent 66a6af5 commit 24f1956
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ cmake_minimum_required(VERSION 3.5)

project({{{packageName}}})

find_package(QT NAMES Qt6 Qt5 REQUIRED COMPONENTS Core Network Gui)
find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Core Network Gui)

include(GNUInstallDirs)
Expand Down
1 change: 1 addition & 0 deletions samples/client/petstore/cpp-qt/client/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ cmake_minimum_required(VERSION 3.5)

project(CppQtPetstoreClient)

find_package(QT NAMES Qt6 Qt5 REQUIRED COMPONENTS Core Network Gui)
find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Core Network Gui)

include(GNUInstallDirs)
Expand Down

0 comments on commit 24f1956

Please sign in to comment.