Welcome to mirror list, hosted at ThFree Co, Russian Federation.

install-library.cmake « cmake - github.com/mumble-voip/mumble.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: f29e849b236a7abc7a5ca4bbedb25841b86fd1da (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>.

function(install_library lib component)
	get_target_property(lib_type ${lib} TYPE)

	if(NOT lib_type STREQUAL "STATIC_LIBRARY")
		# only install non-static libraries
		if(WIN32)
			install(TARGETS ${lib} RUNTIME DESTINATION "${MUMBLE_INSTALL_LIBDIR}" COMPONENT "${component}")
		else()
			install(TARGETS ${lib} LIBRARY DESTINATION "${MUMBLE_INSTALL_LIBDIR}" COMPONENT "${component}")
		endif()
	endif()
endfunction()