UICommon/CMakeLists: Migrate off of add_dolphin_library

Continues the migration work started in
3a4c3bbe01
This commit is contained in:
Lioncash 2018-03-27 22:57:56 -04:00
parent ac97f0463f
commit a2a18380a7

View file

@ -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)