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 7e44498 commit 15e3d2c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
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
1 change: 0 additions & 1 deletion Source/dolphin-memory-engine.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,6 @@
<ClCompile Include="GeneratedFiles\$(Configuration)\moc_MemWatchModel.cpp" />
<ClCompile Include="GeneratedFiles\$(Configuration)\moc_MemWatchWidget.cpp" />
<ClCompile Include="GeneratedFiles\$(Configuration)\moc_ResultsListModel.cpp" />
<ClCompile Include="GeneratedFiles\$(Configuration)\moc_AddressInputWidget.cpp" />
</ItemGroup>
<ItemGroup>
<ClInclude Include="**\*.h" Exclude="GUI\**\*.h" />
Expand Down

0 comments on commit 15e3d2c

Please sign in to comment.