Updated the server CMakeLists.txt

This commit is contained in:
WolverinDEV 2020-11-10 15:44:07 +01:00
parent 1ad3187a86
commit be58f24196

View File

@ -303,9 +303,19 @@ target_link_libraries(TeaSpeakServer
zstd::libzstd_static
)
target_link_libraries(TeaSpeakServer
${CMAKE_SOURCE_DIR}/rtclib/target/debug/libteaspeak_rtc.so
)
if(EXISTS "${CMAKE_SOURCE_DIR}/rtclib/librtc.so" AND NOT NO_RELEASE_RTC)
message("Linking to release librtc file")
target_link_libraries(TeaSpeakServer
${CMAKE_SOURCE_DIR}/rtclib/librtc.so
)
elseif(EXISTS "${CMAKE_SOURCE_DIR}/rtclib/target/debug/libteaspeak_rtc.so")
message("Linkding against debug libteaspeak_rtc.so")
target_link_libraries(TeaSpeakServer
${CMAKE_SOURCE_DIR}/rtclib/target/debug/libteaspeak_rtc.so
)
else()
message(FATAL_ERROR "Missing librtc library file")
endif()
# include_directories(${LIBRARY_PATH}/boringssl/include/)
target_link_libraries(TeaSpeakServer