mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
Merge pull request #11955 from TellowKrinkle/CMakeDependencies
CMake: Allow ignoring system packages
This commit is contained in:
@ -83,7 +83,7 @@ PUBLIC
|
||||
common
|
||||
|
||||
PRIVATE
|
||||
cubeb
|
||||
cubeb::cubeb
|
||||
SoundTouch
|
||||
FreeSurround)
|
||||
|
||||
|
@ -147,16 +147,17 @@ endif()
|
||||
target_link_libraries(common
|
||||
PUBLIC
|
||||
${CMAKE_THREAD_LIBS_INIT}
|
||||
enet
|
||||
enet::enet
|
||||
fmt::fmt
|
||||
${MBEDTLS_LIBRARIES}
|
||||
minizip-ng
|
||||
MbedTLS::mbedtls
|
||||
minizip::minizip
|
||||
sfml-network
|
||||
|
||||
PRIVATE
|
||||
${CURL_LIBRARIES}
|
||||
CURL::libcurl
|
||||
FatFs
|
||||
Iconv::Iconv
|
||||
${spng_target}
|
||||
spng::spng
|
||||
${VTUNE_LIBRARIES}
|
||||
)
|
||||
|
||||
|
@ -605,24 +605,23 @@ target_link_libraries(core
|
||||
PUBLIC
|
||||
audiocommon
|
||||
common
|
||||
cubeb
|
||||
discio
|
||||
enet
|
||||
enet::enet
|
||||
expr
|
||||
inputcommon
|
||||
${MBEDTLS_LIBRARIES}
|
||||
MbedTLS::mbedtls
|
||||
pugixml
|
||||
RangeSet::RangeSet
|
||||
sfml-network
|
||||
sfml-system
|
||||
videonull
|
||||
videoogl
|
||||
videosoftware
|
||||
|
||||
PRIVATE
|
||||
cubeb::cubeb
|
||||
FatFs
|
||||
fmt::fmt
|
||||
${LZO}
|
||||
LZO::LZO
|
||||
ZLIB::ZLIB
|
||||
)
|
||||
|
||||
@ -646,9 +645,8 @@ elseif (ANDROID)
|
||||
)
|
||||
endif()
|
||||
|
||||
if(LIBUSB_FOUND)
|
||||
# Using shared LibUSB
|
||||
target_link_libraries(core PUBLIC ${LIBUSB_LIBRARIES})
|
||||
if(TARGET LibUSB::LibUSB)
|
||||
target_link_libraries(core PUBLIC LibUSB::LibUSB)
|
||||
target_sources(core PRIVATE
|
||||
IOS/USB/LibusbDevice.cpp
|
||||
IOS/USB/LibusbDevice.h
|
||||
|
@ -75,7 +75,7 @@ PUBLIC
|
||||
|
||||
PRIVATE
|
||||
fmt::fmt
|
||||
minizip-ng
|
||||
minizip::minizip
|
||||
pugixml
|
||||
ZLIB::ZLIB
|
||||
)
|
||||
|
@ -81,7 +81,8 @@ PUBLIC
|
||||
|
||||
PRIVATE
|
||||
fmt::fmt
|
||||
${spng_target}
|
||||
sfml-network
|
||||
spng::spng
|
||||
)
|
||||
|
||||
if(WIN32)
|
||||
@ -146,7 +147,7 @@ elseif(ANDROID)
|
||||
endif()
|
||||
|
||||
if(NOT ANDROID)
|
||||
target_link_libraries(inputcommon PUBLIC ${LIBUSB_LIBRARIES})
|
||||
target_link_libraries(inputcommon PUBLIC LibUSB::LibUSB)
|
||||
endif()
|
||||
|
||||
if(LIBEVDEV_FOUND AND LIBUDEV_FOUND)
|
||||
@ -174,12 +175,13 @@ if(UNIX)
|
||||
)
|
||||
endif()
|
||||
|
||||
if(SDL2_FOUND)
|
||||
if(ENABLE_SDL)
|
||||
target_sources(inputcommon PRIVATE
|
||||
ControllerInterface/SDL/SDL.cpp
|
||||
ControllerInterface/SDL/SDL.h
|
||||
)
|
||||
target_link_libraries(inputcommon PRIVATE SDL2::SDL2)
|
||||
target_compile_definitions(inputcommon PUBLIC HAVE_SDL2=1)
|
||||
endif()
|
||||
|
||||
if(MSVC)
|
||||
|
@ -29,7 +29,7 @@ target_link_libraries(uicommon
|
||||
PUBLIC
|
||||
common
|
||||
cpp-optparse
|
||||
minizip-ng
|
||||
minizip::minizip
|
||||
pugixml
|
||||
|
||||
PRIVATE
|
||||
@ -48,8 +48,8 @@ if(ENABLE_X11 AND X11_FOUND)
|
||||
target_link_libraries(uicommon PUBLIC ${XRANDR_LIBRARIES})
|
||||
endif()
|
||||
|
||||
if(LIBUSB_FOUND)
|
||||
target_link_libraries(uicommon PRIVATE ${LIBUSB_LIBRARIES})
|
||||
if(TARGET LibUSB::LibUSB)
|
||||
target_link_libraries(uicommon PRIVATE LibUSB::LibUSB)
|
||||
endif()
|
||||
|
||||
if(ENABLE_LLVM)
|
||||
|
@ -6,7 +6,7 @@ add_library(updatercommon
|
||||
|
||||
target_link_libraries(updatercommon PRIVATE
|
||||
uicommon
|
||||
mbedtls
|
||||
MbedTLS::mbedtls
|
||||
ZLIB::ZLIB
|
||||
ed25519
|
||||
cpp-optparse
|
||||
|
@ -195,7 +195,7 @@ PUBLIC
|
||||
core
|
||||
PRIVATE
|
||||
fmt::fmt
|
||||
${spng_target}
|
||||
spng::spng
|
||||
xxhash
|
||||
imgui
|
||||
implot
|
||||
|
Reference in New Issue
Block a user