From a2a18380a7170c426afe5a3baef6e9f4069e77c3 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Tue, 27 Mar 2018 22:57:56 -0400 Subject: [PATCH] UICommon/CMakeLists: Migrate off of add_dolphin_library Continues the migration work started in 3a4c3bbe01e7a44ec997f4fbf0b678fba6f2d46c --- Source/Core/UICommon/CMakeLists.txt | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/Source/Core/UICommon/CMakeLists.txt b/Source/Core/UICommon/CMakeLists.txt index cbd59b1a17..fa0057b466 100644 --- a/Source/Core/UICommon/CMakeLists.txt +++ b/Source/Core/UICommon/CMakeLists.txt @@ -1,4 +1,4 @@ -set(SRCS +add_library(uicommon AutoUpdate.cpp CommandLineParse.cpp Disassembler.cpp @@ -9,17 +9,19 @@ set(SRCS VideoUtils.cpp ) +target_link_libraries(uicommon PUBLIC + common + cpp-optparse +) + if(USE_X11) - set(SRCS ${SRCS} X11Utils.cpp) + target_sources(uicommon PRIVATE X11Utils.cpp) endif() -set(LIBS common cpp-optparse) if(LIBUSB_FOUND) - set(LIBS ${LIBS} ${LIBUSB_LIBRARIES}) + target_link_libraries(uicommon PRIVATE ${LIBUSB_LIBRARIES}) endif() -add_dolphin_library(uicommon "${SRCS}" "${LIBS}") - if(ENABLE_LLVM) find_package(LLVM CONFIG QUIET) if(LLVM_FOUND AND TARGET LLVM)