summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorAdmiral H. Curtiss <pikachu025@gmail.com>2023-06-30 19:06:04 +0200
committerGitHub <noreply@github.com>2023-06-30 19:06:04 +0200
commitfa81006b519cdfff61a4686df8cdef901cf6685d (patch)
tree3389d331067ce7f8ae0389e11b5152636dd952ec /Source/Core
parente4d7ba5554e4d0eae1e803679318c7d2551d9c5f (diff)
parentade40650f5cbd2e950e382ab0a21598ab34aa65c (diff)
Merge pull request #11955 from TellowKrinkle/CMakeDependencies
CMake: Allow ignoring system packages
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/AudioCommon/CMakeLists.txt2
-rw-r--r--Source/Core/Common/CMakeLists.txt11
-rw-r--r--Source/Core/Core/CMakeLists.txt14
-rw-r--r--Source/Core/DiscIO/CMakeLists.txt2
-rw-r--r--Source/Core/InputCommon/CMakeLists.txt8
-rw-r--r--Source/Core/UICommon/CMakeLists.txt6
-rw-r--r--Source/Core/UpdaterCommon/CMakeLists.txt2
-rw-r--r--Source/Core/VideoCommon/CMakeLists.txt2
8 files changed, 24 insertions, 23 deletions
diff --git a/Source/Core/AudioCommon/CMakeLists.txt b/Source/Core/AudioCommon/CMakeLists.txt
index 18cc67470b..26dc443d90 100644
--- a/Source/Core/AudioCommon/CMakeLists.txt
+++ b/Source/Core/AudioCommon/CMakeLists.txt
@@ -83,7 +83,7 @@ PUBLIC
common
PRIVATE
- cubeb
+ cubeb::cubeb
SoundTouch
FreeSurround)
diff --git a/Source/Core/Common/CMakeLists.txt b/Source/Core/Common/CMakeLists.txt
index 3092103b16..5f3194e09d 100644
--- a/Source/Core/Common/CMakeLists.txt
+++ b/Source/Core/Common/CMakeLists.txt
@@ -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}
)
diff --git a/Source/Core/Core/CMakeLists.txt b/Source/Core/Core/CMakeLists.txt
index 709feba8ea..f50185049a 100644
--- a/Source/Core/Core/CMakeLists.txt
+++ b/Source/Core/Core/CMakeLists.txt
@@ -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
diff --git a/Source/Core/DiscIO/CMakeLists.txt b/Source/Core/DiscIO/CMakeLists.txt
index 44d4af95b8..11fb5cf52a 100644
--- a/Source/Core/DiscIO/CMakeLists.txt
+++ b/Source/Core/DiscIO/CMakeLists.txt
@@ -75,7 +75,7 @@ PUBLIC
PRIVATE
fmt::fmt
- minizip-ng
+ minizip::minizip
pugixml
ZLIB::ZLIB
)
diff --git a/Source/Core/InputCommon/CMakeLists.txt b/Source/Core/InputCommon/CMakeLists.txt
index 0343717a34..ed19e12b74 100644
--- a/Source/Core/InputCommon/CMakeLists.txt
+++ b/Source/Core/InputCommon/CMakeLists.txt
@@ -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)
diff --git a/Source/Core/UICommon/CMakeLists.txt b/Source/Core/UICommon/CMakeLists.txt
index 947aeae346..7505f9c9f5 100644
--- a/Source/Core/UICommon/CMakeLists.txt
+++ b/Source/Core/UICommon/CMakeLists.txt
@@ -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)
diff --git a/Source/Core/UpdaterCommon/CMakeLists.txt b/Source/Core/UpdaterCommon/CMakeLists.txt
index c026cd577d..9bc1f9ab45 100644
--- a/Source/Core/UpdaterCommon/CMakeLists.txt
+++ b/Source/Core/UpdaterCommon/CMakeLists.txt
@@ -6,7 +6,7 @@ add_library(updatercommon
target_link_libraries(updatercommon PRIVATE
uicommon
- mbedtls
+ MbedTLS::mbedtls
ZLIB::ZLIB
ed25519
cpp-optparse
diff --git a/Source/Core/VideoCommon/CMakeLists.txt b/Source/Core/VideoCommon/CMakeLists.txt
index ed8642fb1e..acb011cbb1 100644
--- a/Source/Core/VideoCommon/CMakeLists.txt
+++ b/Source/Core/VideoCommon/CMakeLists.txt
@@ -195,7 +195,7 @@ PUBLIC
core
PRIVATE
fmt::fmt
- ${spng_target}
+ spng::spng
xxhash
imgui
implot