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
fix OpenAPITools#17712) (OpenAPITools#17721)

* [cpp-qt-client] Fix CMakeLists.txt.mustache and CMakeLists.txt for Qt5
(fix OpenAPITools#17712)

* Restore CMAKE_AUTOMOC
  • Loading branch information
MartinDelille authored and kota65535 committed Feb 23, 2024
1 parent 538280c commit 3f81998
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ cmake_minimum_required(VERSION 3.5)

project({{{packageName}}})

set(CMAKE_AUTOMOC ON)

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
3 changes: 3 additions & 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,9 @@ cmake_minimum_required(VERSION 3.5)

project(CppQtPetstoreClient)

set(CMAKE_AUTOMOC ON)

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 3f81998

Please sign in to comment.