blob: 7845bb990cd644b55fd7a1b5d08237941cf4e43d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
# Copyright 2019-2020 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()
|