mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-03-22 15:05:03 +01:00
Add discord-rpc library
This commit is contained in:
4
.gitmodules
vendored
4
.gitmodules
vendored
@@ -19,3 +19,7 @@
|
|||||||
[submodule "ref/asio"]
|
[submodule "ref/asio"]
|
||||||
path = ref/asio
|
path = ref/asio
|
||||||
url = https://github.com/chriskohlhoff/asio.git
|
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
|
||||||
|
|||||||
@@ -444,6 +444,12 @@ target_link_libraries(${PROJECT_NAME} Threads::Threads)
|
|||||||
find_package(GLM REQUIRED)
|
find_package(GLM REQUIRED)
|
||||||
target_include_directories(${PROJECT_NAME} PRIVATE ${GLM_INCLUDE_DIR})
|
target_include_directories(${PROJECT_NAME} PRIVATE ${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)
|
find_package(OpenAL REQUIRED)
|
||||||
if (TARGET OpenAL::OpenAL)
|
if (TARGET OpenAL::OpenAL)
|
||||||
target_link_libraries(${PROJECT_NAME} 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