mirror of https://github.com/PCSX2/pcsx2.git
CMake: Enable RAIntegration on Windows builds
This commit is contained in:
parent
9c91c700ac
commit
a5ebb388a0
|
@ -0,0 +1,10 @@
|
||||||
|
add_library(rainterface
|
||||||
|
RA_Consoles.h
|
||||||
|
RA_Emulators.h
|
||||||
|
RA_Interface.cpp
|
||||||
|
RA_Interface.h
|
||||||
|
)
|
||||||
|
|
||||||
|
target_include_directories(rainterface PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}")
|
||||||
|
target_include_directories(rainterface INTERFACE "${CMAKE_CURRENT_SOURCE_DIR}")
|
||||||
|
|
|
@ -154,6 +154,9 @@ if(QT_BUILD)
|
||||||
# rcheevos backend for RetroAchievements.
|
# rcheevos backend for RetroAchievements.
|
||||||
if(USE_ACHIEVEMENTS)
|
if(USE_ACHIEVEMENTS)
|
||||||
add_subdirectory(3rdparty/rcheevos EXCLUDE_FROM_ALL)
|
add_subdirectory(3rdparty/rcheevos EXCLUDE_FROM_ALL)
|
||||||
|
if(WIN32)
|
||||||
|
add_subdirectory(3rdparty/rainterface EXCLUDE_FROM_ALL)
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Discord-RPC library for rich presence.
|
# Discord-RPC library for rich presence.
|
||||||
|
|
|
@ -884,6 +884,15 @@ if(USE_ACHIEVEMENTS)
|
||||||
target_link_libraries(PCSX2_FLAGS INTERFACE
|
target_link_libraries(PCSX2_FLAGS INTERFACE
|
||||||
rcheevos
|
rcheevos
|
||||||
)
|
)
|
||||||
|
if(WIN32)
|
||||||
|
# RAIntegration is only supported on Windows.
|
||||||
|
target_compile_definitions(PCSX2_FLAGS INTERFACE
|
||||||
|
ENABLE_RAINTEGRATION
|
||||||
|
)
|
||||||
|
target_link_libraries(PCSX2_FLAGS INTERFACE
|
||||||
|
rainterface
|
||||||
|
)
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
if(USE_DISCORD_PRESENCE)
|
if(USE_DISCORD_PRESENCE)
|
||||||
target_compile_definitions(PCSX2_FLAGS INTERFACE
|
target_compile_definitions(PCSX2_FLAGS INTERFACE
|
||||||
|
|
Loading…
Reference in New Issue