mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 21:37:52 -07:00
8324a85339
Use MacOS Standard Fullscreen hotkey
55 lines
1.2 KiB
CMake
55 lines
1.2 KiB
CMake
add_executable(dolphin-nogui
|
|
Platform.cpp
|
|
Platform.h
|
|
PlatformHeadless.cpp
|
|
MainNoGUI.cpp
|
|
)
|
|
|
|
if(ENABLE_X11 AND X11_FOUND)
|
|
target_sources(dolphin-nogui PRIVATE PlatformX11.cpp)
|
|
endif()
|
|
|
|
if(WIN32)
|
|
target_sources(dolphin-nogui PRIVATE PlatformWin32.cpp)
|
|
endif()
|
|
|
|
if(APPLE)
|
|
target_sources(dolphin-nogui PRIVATE PlatformMacos.mm)
|
|
target_compile_options(dolphin-nogui PRIVATE -fobjc-arc)
|
|
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)
|
|
|
|
target_link_libraries(dolphin-nogui
|
|
PRIVATE
|
|
core
|
|
uicommon
|
|
cpp-optparse
|
|
)
|
|
|
|
if(APPLE)
|
|
target_link_libraries(dolphin-nogui
|
|
PRIVATE
|
|
${APPKIT_LIBRARY}
|
|
${COREFOUNDATION_LIBRARY}
|
|
${IOK_LIBRARY}
|
|
)
|
|
endif()
|
|
|
|
if(MSVC)
|
|
# Add precompiled header
|
|
target_link_libraries(dolphin-nogui PRIVATE use_pch)
|
|
endif()
|
|
|
|
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 ${CMAKE_INSTALL_BINDIR})
|
|
|