blob: feb5e2c27fac29eecb57b69a2027bd0774e05338 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
# Copyright 2020-2021 The Mumble Developers. All rights reserved.
# Use of this source code is governed by a BSD-style license
# that can be found in the LICENSE file at the root of the
# Mumble source tree or at <https://www.mumble.info/LICENSE>.
add_library(link SHARED)
if(WIN32)
target_sources(link PRIVATE "link.cpp")
elseif(UNIX)
target_sources(link PRIVATE "link-posix.cpp")
if(${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
find_library(LIB_RT "rt")
target_link_libraries(link PRIVATE ${LIB_RT})
endif()
endif()
|