mirror of
https://github.com/UltraCoderRU/libwebrtc.git
synced 2026-01-28 11:15:13 +00:00
Set better install paths for lib, include and cmake components
This commit is contained in:
parent
95384c655e
commit
5ccda05d8c
1 changed files with 13 additions and 14 deletions
|
|
@ -44,21 +44,20 @@ option(BUILD_TESTS "Build test binaries" OFF)
|
||||||
set(NINJA_ARGS "" CACHE STRING "Ninja arguments to pass before compiling WebRTC")
|
set(NINJA_ARGS "" CACHE STRING "Ninja arguments to pass before compiling WebRTC")
|
||||||
|
|
||||||
#
|
#
|
||||||
# Directories
|
# Offer the user the choice of overriding the installation directories
|
||||||
#
|
set(INSTALL_LIB_DIR lib CACHE PATH "Installation directory for libraries")
|
||||||
|
set(INSTALL_BIN_DIR bin CACHE PATH "Installation directory for executables")
|
||||||
|
set(INSTALL_INCLUDE_DIR include CACHE PATH "Installation directory for header files")
|
||||||
|
set(INSTALL_CMAKE_DIR lib/cmake/LibWebRTC CACHE PATH "Installation directory for CMake files")
|
||||||
|
|
||||||
if (NOT LIBWEBRTC_INSTALL_BIN_DIR)
|
#
|
||||||
set(LIBWEBRTC_INSTALL_BIN_DIR "bin")
|
# Make relative paths absolute (needed later on)
|
||||||
endif ()
|
foreach(p LIB BIN INCLUDE CMAKE)
|
||||||
if (NOT LIBWEBRTC_INSTALL_LIB_DIR)
|
set(var INSTALL_${p}_DIR)
|
||||||
set(LIBWEBRTC_INSTALL_LIB_DIR "lib")
|
if(NOT IS_ABSOLUTE "${${var}}")
|
||||||
endif ()
|
set(${var} "${CMAKE_INSTALL_PREFIX}/${${var}}")
|
||||||
if (NOT LIBWEBRTC_INSTALL_DATA_DIR)
|
|
||||||
set(LIBWEBRTC_INSTALL_DATA_DIR "share")
|
|
||||||
endif ()
|
|
||||||
if (NOT LIBWEBRTC_INSTALL_INCLUDE_DIR)
|
|
||||||
set(LIBWEBRTC_INSTALL_INCLUDE_DIR "include")
|
|
||||||
endif()
|
endif()
|
||||||
|
endforeach()
|
||||||
|
|
||||||
#
|
#
|
||||||
# Target OS
|
# Target OS
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue