Meta: Move the Qt6 dependency stuff to the Qt UI CMake
Instead of this awkward place let's move it to the Qt UI CMakeLists, which makes much more sense for stuff like this.
This commit is contained in:
parent
f601c0cd4b
commit
4eda70a4f1
2 changed files with 5 additions and 7 deletions
|
|
@ -58,13 +58,6 @@ if (ANDROID AND ENABLE_QT)
|
|||
set(ENABLE_QT OFF CACHE BOOL "" FORCE)
|
||||
endif()
|
||||
|
||||
if (ENABLE_QT AND ENABLE_GUI_TARGETS)
|
||||
set(CMAKE_AUTOMOC ON)
|
||||
set(CMAKE_AUTORCC ON)
|
||||
set(CMAKE_AUTOUIC ON)
|
||||
find_package(Qt6 REQUIRED COMPONENTS Core Widgets)
|
||||
endif()
|
||||
|
||||
# We need to find OpenSSL in order to link it explicitly with all targets.
|
||||
find_package(OpenSSL REQUIRED)
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,8 @@
|
|||
set(CMAKE_AUTOMOC ON)
|
||||
set(CMAKE_AUTORCC ON)
|
||||
set(CMAKE_AUTOUIC ON)
|
||||
find_package(Qt6 REQUIRED COMPONENTS Core Widgets)
|
||||
|
||||
qt_add_executable(ladybird main.cpp)
|
||||
target_sources(ladybird PRIVATE
|
||||
Application.cpp
|
||||
|
|
|
|||
Loading…
Reference in a new issue