File tree Expand file tree Collapse file tree 6 files changed +4
-26
lines changed
Expand file tree Collapse file tree 6 files changed +4
-26
lines changed Original file line number Diff line number Diff line change @@ -21,18 +21,18 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
2121option (FORCE_BUILD_QT5 "Force Qt5 build instead of Qt6" OFF )
2222
2323if (FORCE_BUILD_QT5)
24- find_package (Qt5 NAMES Qt5 REQUIRED COMPONENTS Core)
24+ find_package (Qt5 NAMES Qt5 REQUIRED COMPONENTS Core Widgets Xml )
2525 string (REPLACE "." ";" qt_version_list ${Qt5_VERSION} )
2626else ()
27- find_package (Qt6 NAMES Qt6 REQUIRED COMPONENTS Core)
27+ find_package (Qt6 NAMES Qt6 REQUIRED COMPONENTS Core Widgets Xml Core5Compat )
2828 string (REPLACE "." ";" qt_version_list ${Qt6_VERSION} )
2929endif ()
3030list (GET qt_version_list 0 QT_VERSION_MAJOR)
3131list (GET qt_version_list 1 QT_VERSION_MINOR)
3232list (GET qt_version_list 1 QT_VERSION_PATCH)
3333message (STATUS "QT_VERSION_MAJOR = ${QT_VERSION_MAJOR} " )
3434
35- find_package (Python3 COMPONENTS Development)
35+ find_package (Python3 COMPONENTS Development REQUIRED )
3636
3737# Set the environment as defined in Readme.md
3838# Set environment variables for Python
Original file line number Diff line number Diff line change 1- cmake_minimum_required (VERSION 3.27)
21project (PythonQtGenerator LANGUAGES CXX)
32
43add_subdirectory (parser)
54
65set (CMAKE_AUTOMOC ON )
76set (CMAKE_AUTORCC ON )
87
9- if (FORCE_BUILD_QT5)
10- find_package (Qt5 NAMES Qt5 REQUIRED COMPONENTS Core Widgets Xml)
11- else ()
12- find_package (Qt6 NAMES Qt6 REQUIRED COMPONENTS Core Widgets Xml Core5Compat)
13- endif ()
14-
158file (GLOB SOURCES *.h *.cpp *.qrc simplecpp/*.h simplecpp/*.cpp )
169# Explicitly exclude qtscript_masterinclude.h
1710list (REMOVE_ITEM SOURCES "${CMAKE_CURRENT_LIST_DIR} /qtscript_masterinclude.h" )
Original file line number Diff line number Diff line change @@ -4,12 +4,6 @@ add_subdirectory(rpp)
44set (CMAKE_AUTOMOC ON )
55set (CMAKE_AUTORCC ON )
66
7- if (FORCE_BUILD_QT5)
8- find_package (Qt5 NAMES Qt5 REQUIRED COMPONENTS Core)
9- else ()
10- find_package (Qt6 NAMES Qt6 REQUIRED COMPONENTS Core)
11- endif ()
12-
137file (GLOB SOURCES *.h *.cpp)
148
159add_library (${PROJECT_NAME} INTERFACE )
Original file line number Diff line number Diff line change @@ -3,12 +3,6 @@ project(rpp LANGUAGES CXX)
33set (CMAKE_AUTOMOC ON )
44set (CMAKE_AUTORCC ON )
55
6- if (FORCE_BUILD_QT5)
7- find_package (Qt5 NAMES Qt5 REQUIRED COMPONENTS Core)
8- else ()
9- find_package (Qt6 NAMES Qt6 REQUIRED COMPONENTS Core)
10- endif ()
11-
126file (GLOB SOURCES *.h preprocessor.cpp)
137
148add_library (${PROJECT_NAME} INTERFACE )
Original file line number Diff line number Diff line change @@ -2,9 +2,6 @@ project(Core LANGUAGES CXX)
22
33set (CMAKE_AUTOMOC ON )
44
5- find_package (Qt${QT_VERSION_MAJOR} COMPONENTS Core Widgets REQUIRED)
6- find_package (Python3 COMPONENTS Development REQUIRED)
7-
85file (GLOB SOURCES *.h *.cpp)
96
107if (BUILD_SHARED_LIBS )
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ project(PythonQtTest LANGUAGES CXX)
22
33set (CMAKE_AUTOMOC ON )
44
5- find_package (Qt${QT_VERSION_MAJOR} COMPONENTS Widgets Test REQUIRED)
5+ find_package (Qt${QT_VERSION_MAJOR} COMPONENTS Core Widgets Test REQUIRED)
66
77file (GLOB SOURCES *.h *.cpp)
88
You can’t perform that action at this time.
0 commit comments