DolphinNoGUI/CMakeLists: Remove the use of SRCS and LIBS variables

Instead, operate on the target directly. This removes the last usages of the
SRCS and LIBS variables.
This commit is contained in:
Lioncash 2018-04-04 11:41:50 -04:00
parent 9be505fde2
commit 6f694e435c
No known key found for this signature in database
GPG Key ID: 4E3C3CC1031BA9C7

View File

@ -2,16 +2,17 @@ if(NOT(USE_X11 OR ENABLE_HEADLESS))
return()
endif()
set(NOGUI_SRCS MainNoGUI.cpp)
add_executable(dolphin-nogui
MainNoGUI.cpp
)
add_executable(dolphin-nogui ${NOGUI_SRCS})
set_target_properties(dolphin-nogui PROPERTIES OUTPUT_NAME dolphin-emu-nogui)
target_link_libraries(dolphin-nogui PRIVATE
target_link_libraries(dolphin-nogui
PRIVATE
core
uicommon
cpp-optparse
${LIBS}
)
set(CPACK_PACKAGE_EXECUTABLES ${CPACK_PACKAGE_EXECUTABLES} dolphin-nogui)