mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-25 05:54:57 +00:00
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:
parent
9be505fde2
commit
6f694e435c
1 changed files with 5 additions and 4 deletions
|
@ -2,16 +2,17 @@ if(NOT(USE_X11 OR ENABLE_HEADLESS))
|
||||||
return()
|
return()
|
||||||
endif()
|
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)
|
set_target_properties(dolphin-nogui PROPERTIES OUTPUT_NAME dolphin-emu-nogui)
|
||||||
|
|
||||||
target_link_libraries(dolphin-nogui PRIVATE
|
target_link_libraries(dolphin-nogui
|
||||||
|
PRIVATE
|
||||||
core
|
core
|
||||||
uicommon
|
uicommon
|
||||||
cpp-optparse
|
cpp-optparse
|
||||||
${LIBS}
|
|
||||||
)
|
)
|
||||||
|
|
||||||
set(CPACK_PACKAGE_EXECUTABLES ${CPACK_PACKAGE_EXECUTABLES} dolphin-nogui)
|
set(CPACK_PACKAGE_EXECUTABLES ${CPACK_PACKAGE_EXECUTABLES} dolphin-nogui)
|
||||||
|
|
Loading…
Add table
Reference in a new issue