Skip to content

Commit

Permalink
Added check on windows for Qt6. if not installed, adds external Qt pa…
Browse files Browse the repository at this point in the history
…th to cmake and tries again.
  • Loading branch information
jahorta committed Jul 7, 2024
1 parent 9736e67 commit 25c4347
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion Source/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,17 @@ set(SRCS ${DolphinProcessSrc}

set(CMAKE_INCLUDE_CURRENT_DIR ON)

find_package(Qt6Widgets REQUIRED)
if (WIN32)
find_package(Qt6Widgets QUIET)
if (NOT Qt6Widgets_FOUND)
message(STATUS "Qt package not found, using external lib")
list(APPEND CMAKE_PREFIX_PATH "${CMAKE_CURRENT_LIST_DIR}\\..\\Externals\\Qt\\Qt6.5.3\\x64")
find_package(Qt6Widgets REQUIRED)
endif ()
else ()
find_package(Qt6Widgets REQUIRED)
endif ()

find_package(Qt6Core REQUIRED)
find_package(Qt6Gui REQUIRED)
if (NOT APPLE)
Expand Down

0 comments on commit 25c4347

Please sign in to comment.