Add missing find_package into CMakeLists.txt (#1165)

* Update CMakeLists.txt

* Add missing find_package directive

* Update CMakeLists.txt
This commit is contained in:
qr243vbi 2025-07-27 02:35:50 +03:00 committed by GitHub
parent f7361fdebb
commit 687c4415be
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -17,6 +17,7 @@ list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/CMakeModules")
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/externals/cmake-modules") list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/externals/cmake-modules")
include(DownloadExternals) include(DownloadExternals)
include(CMakeDependentOption) include(CMakeDependentOption)
include(FindPkgConfig)
project(citra LANGUAGES C CXX ASM) project(citra LANGUAGES C CXX ASM)
if (CMAKE_SYSTEM_NAME STREQUAL "Darwin" OR CMAKE_SYSTEM_NAME STREQUAL "iOS") if (CMAKE_SYSTEM_NAME STREQUAL "Darwin" OR CMAKE_SYSTEM_NAME STREQUAL "iOS")
@ -481,12 +482,10 @@ if (ENABLE_SDL2 AND USE_SYSTEM_SDL2)
endif() endif()
if (ENABLE_LIBUSB AND USE_SYSTEM_LIBUSB) if (ENABLE_LIBUSB AND USE_SYSTEM_LIBUSB)
include(FindPkgConfig)
find_package(LibUSB) find_package(LibUSB)
endif() endif()
if (USE_SYSTEM_SOUNDTOUCH) if (USE_SYSTEM_SOUNDTOUCH)
include(FindPkgConfig)
find_package(SoundTouch REQUIRED) find_package(SoundTouch REQUIRED)
add_library(SoundTouch INTERFACE) add_library(SoundTouch INTERFACE)
target_link_libraries(SoundTouch INTERFACE "${SOUNDTOUCH_LIBRARIES}") target_link_libraries(SoundTouch INTERFACE "${SOUNDTOUCH_LIBRARIES}")

View File

@ -271,6 +271,7 @@ if (ENABLE_VULKAN)
endif() endif()
if (NOT WIN32) if (NOT WIN32)
find_package(Qt6 REQUIRED COMPONENTS Core Gui Widgets)
target_include_directories(citra_qt PRIVATE ${Qt6Gui_PRIVATE_INCLUDE_DIRS}) target_include_directories(citra_qt PRIVATE ${Qt6Gui_PRIVATE_INCLUDE_DIRS})
endif() endif()