dolphin/Source/Core/DolphinNoGUI/CMakeLists.txt

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

36 lines
783 B
CMake
Raw Normal View History

add_executable(dolphin-nogui
Platform.cpp
Platform.h
PlatformHeadless.cpp
MainNoGUI.cpp
)
2016-05-05 17:55:29 -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()
if(${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
target_sources(dolphin-nogui PRIVATE PlatformFBDev.cpp)
endif()
set_target_properties(dolphin-nogui PROPERTIES OUTPUT_NAME dolphin-emu-nogui)
2016-05-05 17:55:29 -06:00
target_link_libraries(dolphin-nogui
PRIVATE
2016-05-05 17:55:29 -06:00
core
uicommon
cpp-optparse
)
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})