forked from loafle/openapi-generator-original
* [cpp-qt-client] Fix CMakeLists.txt.mustache and CMakeLists.txt for Qt5 (fix #17712) * Restore CMAKE_AUTOMOC
This commit is contained in:
parent
0202bac539
commit
c71eb5dfe8
@ -2,6 +2,9 @@ cmake_minimum_required(VERSION 3.5)
|
|||||||
|
|
||||||
project({{{packageName}}})
|
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)
|
find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Core Network Gui)
|
||||||
|
|
||||||
include(GNUInstallDirs)
|
include(GNUInstallDirs)
|
||||||
|
@ -2,6 +2,9 @@ cmake_minimum_required(VERSION 3.5)
|
|||||||
|
|
||||||
project(CppQtPetstoreClient)
|
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)
|
find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Core Network Gui)
|
||||||
|
|
||||||
include(GNUInstallDirs)
|
include(GNUInstallDirs)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user