mumble/plugins/link/CMakeLists.txt
2020-07-11 19:34:49 +02:00

18 lines
523 B
CMake

# 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()