2018-10-24 04:50:23 +00:00
|
|
|
if(NOT((ENABLE_X11 AND X11_FOUND) OR ENABLE_HEADLESS))
|
2016-05-05 23:55:29 +00:00
|
|
|
return()
|
|
|
|
endif()
|
|
|
|
|
2018-04-04 15:41:50 +00:00
|
|
|
add_executable(dolphin-nogui
|
|
|
|
MainNoGUI.cpp
|
|
|
|
)
|
2016-05-05 23:55:29 +00:00
|
|
|
|
2017-03-08 19:42:46 +00:00
|
|
|
set_target_properties(dolphin-nogui PROPERTIES OUTPUT_NAME dolphin-emu-nogui)
|
2016-05-05 23:55:29 +00:00
|
|
|
|
2018-04-04 15:41:50 +00:00
|
|
|
target_link_libraries(dolphin-nogui
|
|
|
|
PRIVATE
|
2016-05-05 23:55:29 +00:00
|
|
|
core
|
|
|
|
uicommon
|
|
|
|
cpp-optparse
|
|
|
|
)
|
|
|
|
|
2018-06-08 20:56:11 +00:00
|
|
|
if(USE_DISCORD_PRESENCE)
|
|
|
|
target_compile_definitions(dolphin-nogui PRIVATE -DUSE_DISCORD_PRESENCE)
|
|
|
|
endif()
|
|
|
|
|
2016-05-05 23:55:29 +00:00
|
|
|
set(CPACK_PACKAGE_EXECUTABLES ${CPACK_PACKAGE_EXECUTABLES} dolphin-nogui)
|
|
|
|
install(TARGETS dolphin-nogui RUNTIME DESTINATION ${bindir})
|
|
|
|
|