diff options
| author | LillyJadeKatrin <lilly.kitty.1988@gmail.com> | 2023-03-18 12:22:17 -0400 |
|---|---|---|
| committer | LillyJadeKatrin <lilly.kitty.1988@gmail.com> | 2023-04-02 08:28:25 -0400 |
| commit | f3114b59f48260a27d173e028be30dc3d79a3abb (patch) | |
| tree | 0172431d7fcb086eecfe19b1e629243fcc75dac1 /Source/Core | |
| parent | 2836feac71ca45edd59619b11932747b57d5a0d0 (diff) | |
Added USE_RETRO_ACHIEVEMENTS compiler flag
Added a flag to VS and CMake for enabling RetroAchievements integration.
Diffstat (limited to 'Source/Core')
| -rw-r--r-- | Source/Core/Core/CMakeLists.txt | 6 | ||||
| -rw-r--r-- | Source/Core/DolphinQt/CMakeLists.txt | 7 |
2 files changed, 11 insertions, 2 deletions
diff --git a/Source/Core/Core/CMakeLists.txt b/Source/Core/Core/CMakeLists.txt index 9d699dbab1..08b8ffa9c7 100644 --- a/Source/Core/Core/CMakeLists.txt +++ b/Source/Core/Core/CMakeLists.txt @@ -602,7 +602,6 @@ PUBLIC ${MBEDTLS_LIBRARIES} pugixml RangeSet::RangeSet - rcheevos sfml-network sfml-system videonull @@ -748,3 +747,8 @@ if(MSVC) # Add precompiled header target_link_libraries(core PRIVATE use_pch) endif() + +if(USE_RETRO_ACHIEVEMENTS) + target_link_libraries(core PRIVATE rcheevos) + target_compile_definitions(core PRIVATE -DUSE_RETRO_ACHIEVEMENTS) +endif()
\ No newline at end of file diff --git a/Source/Core/DolphinQt/CMakeLists.txt b/Source/Core/DolphinQt/CMakeLists.txt index e9d24bc4d1..184ce1db04 100644 --- a/Source/Core/DolphinQt/CMakeLists.txt +++ b/Source/Core/DolphinQt/CMakeLists.txt @@ -686,4 +686,9 @@ endif() if(USE_DISCORD_PRESENCE) target_compile_definitions(dolphin-emu PRIVATE -DUSE_DISCORD_PRESENCE) -endif()
\ No newline at end of file +endif() + +if(USE_RETRO_ACHIEVEMENTS) + target_link_libraries(dolphin-emu PRIVATE rcheevos) + target_compile_definitions(dolphin-emu PRIVATE -DUSE_RETRO_ACHIEVEMENTS) +endif() |
