mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 13:57:57 -07:00
63f03455f3
I have no idea if this works or not. Hopefully the build bot will tell me.
25 lines
508 B
CMake
25 lines
508 B
CMake
if(NOT(USE_X11 OR ENABLE_HEADLESS))
|
|
return()
|
|
endif()
|
|
|
|
add_executable(dolphin-nogui
|
|
MainNoGUI.cpp
|
|
)
|
|
|
|
set_target_properties(dolphin-nogui PROPERTIES OUTPUT_NAME dolphin-emu-nogui)
|
|
|
|
target_link_libraries(dolphin-nogui
|
|
PRIVATE
|
|
core
|
|
uicommon
|
|
cpp-optparse
|
|
)
|
|
|
|
if(USE_DISCORD_PRESENCE)
|
|
target_compile_definitions(dolphin-nogui PRIVATE -DUSE_DISCORD_PRESENCE)
|
|
endif()
|
|
|
|
set(CPACK_PACKAGE_EXECUTABLES ${CPACK_PACKAGE_EXECUTABLES} dolphin-nogui)
|
|
install(TARGETS dolphin-nogui RUNTIME DESTINATION ${bindir})
|
|
|