Cheevos: Linux support

This commit is contained in:
Connor McLaughlin
2021-02-28 19:01:16 +10:00
parent a032d191c8
commit 10c3506f1a
10 changed files with 694 additions and 6 deletions

View File

@@ -76,7 +76,6 @@ if(SDL2_FOUND)
endif()
if(USE_EVDEV)
find_package(LIBEVDEV REQUIRED)
target_compile_definitions(frontend-common PUBLIC "-DWITH_EVDEV=1")
target_include_directories(frontend-common PRIVATE ${LIBEVDEV_INCLUDE_DIRS})
target_link_libraries(frontend-common PRIVATE ${LIBEVDEV_LIBRARIES})
@@ -101,6 +100,14 @@ if(ENABLE_CHEEVOS)
http_downloader_winhttp.cpp
http_downloader_winhttp.h
)
else()
target_sources(frontend-common PRIVATE
http_downloader_curl.cpp
http_downloader_curl.h
)
target_link_libraries(frontend-common PRIVATE
CURL::libcurl
)
endif()
target_sources(frontend-common PRIVATE