dolphin/Source/Core/DolphinNoGUI/CMakeLists.txt

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

61 lines
1.4 KiB
CMake
Raw Normal View History

add_executable(dolphin-nogui
Platform.cpp
Platform.h
PlatformHeadless.cpp
MainNoGUI.cpp
)
2016-05-05 23:55:29 +00:00
2024-04-18 10:58:08 +00:00
if(X11_FOUND)
target_sources(dolphin-nogui PRIVATE PlatformX11.cpp)
2024-04-18 10:58:08 +00:00
target_link_libraries(dolphin-nogui PRIVATE PkgConfig::XRANDR PkgConfig::X11)
endif()
2019-11-26 04:25:19 +00:00
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)
2016-05-05 23:55:29 +00:00
target_link_libraries(dolphin-nogui
PRIVATE
2016-05-05 23:55:29 +00:00
core
uicommon
cpp-optparse
)
if(APPLE)
target_link_libraries(dolphin-nogui
PRIVATE
${APPKIT_LIBRARY}
${COREFOUNDATION_LIBRARY}
${IOK_LIBRARY}
)
endif()
if(WIN32)
# needed for adjusting window decorations with DwmSetWindowAttribute
target_link_libraries(dolphin-nogui PRIVATE dwmapi.lib)
endif()
2022-05-21 23:19:44 +00:00
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()
2016-05-05 23:55:29 +00:00
set(CPACK_PACKAGE_EXECUTABLES ${CPACK_PACKAGE_EXECUTABLES} dolphin-nogui)
install(TARGETS dolphin-nogui RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
2016-05-05 23:55:29 +00:00