2018-04-04 09:41:50 -06:00
|
|
|
add_executable(dolphin-nogui
|
2018-10-23 23:50:54 -06:00
|
|
|
Platform.cpp
|
2019-05-29 03:04:32 -06:00
|
|
|
Platform.h
|
2018-10-23 23:50:54 -06:00
|
|
|
PlatformHeadless.cpp
|
2018-04-04 09:41:50 -06:00
|
|
|
MainNoGUI.cpp
|
|
|
|
)
|
2016-05-05 17:55:29 -06:00
|
|
|
|
2018-10-23 23:50:54 -06:00
|
|
|
if(ENABLE_X11 AND X11_FOUND)
|
|
|
|
target_sources(dolphin-nogui PRIVATE PlatformX11.cpp)
|
|
|
|
endif()
|
|
|
|
|
2019-11-25 21:25:19 -07:00
|
|
|
if(WIN32)
|
|
|
|
target_sources(dolphin-nogui PRIVATE PlatformWin32.cpp)
|
|
|
|
endif()
|
|
|
|
|
2019-04-10 08:44:21 -06:00
|
|
|
if(${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
|
|
|
|
target_sources(dolphin-nogui PRIVATE PlatformFBDev.cpp)
|
|
|
|
endif()
|
|
|
|
|
2017-03-08 12:42:46 -07:00
|
|
|
set_target_properties(dolphin-nogui PROPERTIES OUTPUT_NAME dolphin-emu-nogui)
|
2016-05-05 17:55:29 -06:00
|
|
|
|
2018-04-04 09:41:50 -06:00
|
|
|
target_link_libraries(dolphin-nogui
|
|
|
|
PRIVATE
|
2016-05-05 17:55:29 -06:00
|
|
|
core
|
|
|
|
uicommon
|
|
|
|
cpp-optparse
|
|
|
|
)
|
|
|
|
|
2018-06-08 14:56:11 -06:00
|
|
|
if(USE_DISCORD_PRESENCE)
|
|
|
|
target_compile_definitions(dolphin-nogui PRIVATE -DUSE_DISCORD_PRESENCE)
|
|
|
|
endif()
|
|
|
|
|
2016-05-05 17:55:29 -06:00
|
|
|
set(CPACK_PACKAGE_EXECUTABLES ${CPACK_PACKAGE_EXECUTABLES} dolphin-nogui)
|
|
|
|
install(TARGETS dolphin-nogui RUNTIME DESTINATION ${bindir})
|
|
|
|
|