mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-09-02 15:45:58 +00:00
CMake: Use targets for all optionally-external dependencies
This commit is contained in:
parent
63090d411d
commit
5b10a80401
25 changed files with 172 additions and 133 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue