mirror of
https://github.com/UltraCoderRU/libwebrtc.git
synced 2026-01-28 03:15:11 +00:00
Generate and install pkg-config file, closes #3
This commit is contained in:
parent
f381807566
commit
1b11dcc9c3
2 changed files with 16 additions and 1 deletions
|
|
@ -31,6 +31,16 @@ install(FILES ${CMAKE_BINARY_DIR}/LibWebRTCConfigVersion.cmake
|
||||||
DESTINATION ${INSTALL_CMAKE_DIR}
|
DESTINATION ${INSTALL_CMAKE_DIR}
|
||||||
COMPONENT cmake)
|
COMPONENT cmake)
|
||||||
|
|
||||||
|
#
|
||||||
|
# Install pkg-config file
|
||||||
|
if (UNIX)
|
||||||
|
configure_file(${CMAKE_MODULE_PATH}/LibWebRTC.pc.in
|
||||||
|
${CMAKE_BINARY_DIR}/LibWebRTC.pc @ONLY)
|
||||||
|
install(FILES ${CMAKE_BINARY_DIR}/LibWebRTC.pc
|
||||||
|
DESTINATION ${INSTALL_LIB_DIR}/pkg-config
|
||||||
|
COMPONENT cmake)
|
||||||
|
endif (UNIX)
|
||||||
|
|
||||||
#
|
#
|
||||||
# Install CMake Use file
|
# Install CMake Use file
|
||||||
install(FILES ${CMAKE_MODULE_PATH}/UseLibWebRTC.cmake
|
install(FILES ${CMAKE_MODULE_PATH}/UseLibWebRTC.cmake
|
||||||
|
|
|
||||||
5
CMakeModules/LibWebRTC.pc.in
Normal file
5
CMakeModules/LibWebRTC.pc.in
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
Name: LibWebRTC
|
||||||
|
Description: Google's native WebRTC implementation shipped into a single library
|
||||||
|
Version: @LIBWEBRTC_VERSION@
|
||||||
|
Libs: -L@INSTALL_LIB_DIR@ -std=gnu++0x -lSM -lICE -lX11 -lXext -ldl -pthread -lwebrtc
|
||||||
|
Cflags: -I@INSTALL_INCLUDE_DIR@ -DWEBRTC_POSIX -std=gnu++0x -D_GLIBCXX_USE_CXX11_ABI=0
|
||||||
Loading…
Add table
Reference in a new issue