dolphin/Source/Core/UICommon/CMakeLists.txt

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

69 lines
1.5 KiB
CMake
Raw Normal View History

add_library(uicommon
AutoUpdate.cpp
AutoUpdate.h
2016-01-17 11:11:43 +00:00
CommandLineParse.cpp
CommandLineParse.h
DiscordPresence.cpp
DiscordPresence.h
GameFile.cpp
GameFile.h
GameFileCache.cpp
GameFileCache.h
2019-03-30 13:48:46 +00:00
NetPlayIndex.cpp
NetPlayIndex.h
2018-11-17 15:36:28 +00:00
ResourcePack/Manager.cpp
ResourcePack/Manager.h
2018-11-17 15:36:28 +00:00
ResourcePack/Manifest.cpp
ResourcePack/Manifest.h
2018-11-17 15:36:28 +00:00
ResourcePack/ResourcePack.cpp
ResourcePack/ResourcePack.h
UICommon.cpp
UICommon.h
USBUtils.cpp
USBUtils.h
)
target_link_libraries(uicommon
PUBLIC
common
core
cpp-optparse
minizip::minizip
pugixml
PRIVATE
fmt::fmt
$<$<BOOL:APPLE>:${IOK_LIBRARY}>
)
if ((DEFINED CMAKE_ANDROID_ARCH_ABI AND CMAKE_ANDROID_ARCH_ABI MATCHES "x86|x86_64") OR
2022-08-08 00:18:36 +00:00
(NOT DEFINED CMAKE_ANDROID_ARCH_ABI AND _M_X86_64))
target_link_libraries(uicommon PRIVATE bdisasm)
endif()
if(UNIX AND NOT APPLE AND NOT ANDROID AND ENABLE_QT)
find_package(Qt6 REQUIRED COMPONENTS DBus)
target_sources(uicommon PRIVATE DBusUtils.cpp)
target_compile_definitions(uicommon PRIVATE -DHAVE_QTDBUS=1)
target_link_libraries(uicommon PUBLIC Qt6::DBus)
endif()
2024-04-18 10:58:08 +00:00
if(X11_FOUND)
target_sources(uicommon PRIVATE X11Utils.cpp)
2024-04-18 10:58:08 +00:00
target_link_libraries(uicommon PUBLIC PkgConfig::XRANDR PkgConfig::X11)
2016-05-05 23:43:38 +00:00
endif()
if(TARGET LibUSB::LibUSB)
target_link_libraries(uicommon PRIVATE LibUSB::LibUSB)
endif()
if(USE_DISCORD_PRESENCE)
target_compile_definitions(uicommon PRIVATE -DUSE_DISCORD_PRESENCE)
target_link_libraries(uicommon PRIVATE discord-rpc)
endif()
2022-05-21 23:19:44 +00:00
if(MSVC)
# Add precompiled header
target_link_libraries(uicommon PRIVATE use_pch)
endif()