mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-18 04:19:19 +02:00
Add discord-rpc library
This commit is contained in:
4
.gitmodules
vendored
4
.gitmodules
vendored
@@ -1,3 +1,7 @@
|
||||
[submodule "ref/asio"]
|
||||
path = ref/asio
|
||||
url = https://github.com/chriskohlhoff/asio.git
|
||||
[submodule "ref/discord-rpc"]
|
||||
path = ref/discord-rpc
|
||||
url = https://github.com/discord/discord-rpc.git
|
||||
branch = v3.4.0
|
||||
|
||||
@@ -429,6 +429,12 @@ target_link_libraries(${PROJECT_NAME} Threads::Threads)
|
||||
find_package(GLM REQUIRED)
|
||||
include_directories(${GLM_INCLUDE_DIR})
|
||||
|
||||
# add ref/discord-rpc to the project in the same way other dependencies are added
|
||||
add_subdirectory(ref/discord-rpc)
|
||||
target_link_libraries(${PROJECT_NAME} discord-rpc)
|
||||
|
||||
|
||||
|
||||
find_package(OpenAL REQUIRED)
|
||||
if (TARGET OpenAL::OpenAL)
|
||||
target_link_libraries(${PROJECT_NAME} OpenAL::OpenAL)
|
||||
|
||||
1
ref/discord-rpc
Submodule
1
ref/discord-rpc
Submodule
Submodule ref/discord-rpc added at 963aa9f3e5
Reference in New Issue
Block a user