forked from skyrim-multiplayer/skymp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
internal: get ga-sdk to work (skyrim-multiplayer#2157)
- Loading branch information
Showing
4 changed files
with
70 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
overlay_ports/ga-sdk-cpp/unofficial-ga-sdk-cpp-config.cmake
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
include(CMakeFindDependencyMacro) | ||
|
||
if(NOT TARGET unofficial::ga-sdk-cpp::ga-sdk-cpp) | ||
add_library(unofficial::ga-sdk-cpp::ga-sdk-cpp UNKNOWN IMPORTED) | ||
|
||
find_path(ga-sdk-cpp_INCLUDE_DIR NAMES GameAnalytics.h) | ||
|
||
set_target_properties(unofficial::ga-sdk-cpp::ga-sdk-cpp PROPERTIES | ||
INTERFACE_INCLUDE_DIRECTORIES "${ga-sdk-cpp_INCLUDE_DIR}" | ||
) | ||
|
||
find_library(ga-sdk-cpp_LIBRARY_RELEASE NAMES ga-sdk-cpp PATHS "${CMAKE_CURRENT_LIST_DIR}/../../lib" NO_DEFAULT_PATH REQUIRED) | ||
find_library(ga-sdk-cpp_LIBRARY_DEBUG NAMES ga-sdk-cpp PATHS "${CMAKE_CURRENT_LIST_DIR}/../../debug/lib" NO_DEFAULT_PATH REQUIRED) | ||
|
||
set_target_properties(unofficial::ga-sdk-cpp::ga-sdk-cpp PROPERTIES | ||
IMPORTED_LOCATION_DEBUG "${ga-sdk-cpp_LIBRARY_DEBUG}" | ||
IMPORTED_LOCATION_RELEASE "${ga-sdk-cpp_LIBRARY_RELEASE}" | ||
IMPORTED_CONFIGURATIONS "Release;Debug" | ||
) | ||
|
||
find_dependency(CURL REQUIRED) | ||
find_dependency(OpenSSL REQUIRED) | ||
find_dependency(RapidJSON REQUIRED) | ||
find_dependency(SQLite3 REQUIRED) | ||
find_dependency(miniz REQUIRED) | ||
find_dependency(zf-log REQUIRED) | ||
|
||
target_link_libraries(unofficial::ga-sdk-cpp::ga-sdk-cpp INTERFACE | ||
CURL::libcurl | ||
OpenSSL::SSL | ||
OpenSSL::Crypto | ||
rapidjson | ||
SQLite::SQLite3 | ||
miniz::miniz | ||
zf_log | ||
) | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,7 @@ | |
"rapidjson", | ||
"sqlite3", | ||
"zf-log", | ||
"miniz", | ||
{ | ||
"name": "vcpkg-cmake", | ||
"host": true | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters