mirror of
https://github.com/UltraCoderRU/libwebrtc.git
synced 2026-01-28 03:15:11 +00:00
Write install commands for the library and header files
This commit is contained in:
parent
5590dfbadc
commit
4809124588
1 changed files with 29 additions and 0 deletions
|
|
@ -0,0 +1,29 @@
|
||||||
|
#
|
||||||
|
# Install library
|
||||||
|
#
|
||||||
|
|
||||||
|
install(
|
||||||
|
FILES ${CMAKE_BINARY_DIR}/${LIBWEBRTC_LIBRARY}
|
||||||
|
DESTINATION ${LIBWEBRTC_INSTALL_LIB_DIR}
|
||||||
|
COMPONENT Libraries
|
||||||
|
)
|
||||||
|
|
||||||
|
#
|
||||||
|
# Install headers
|
||||||
|
#
|
||||||
|
|
||||||
|
file(
|
||||||
|
GLOB_RECURSE header_files
|
||||||
|
RELATIVE ${CMAKE_BINARY_DIR}/src
|
||||||
|
FOLLOW_SYMLINKS
|
||||||
|
${CMAKE_BINARY_DIR}/src/webrtc/*.h
|
||||||
|
)
|
||||||
|
|
||||||
|
foreach(f ${header_files})
|
||||||
|
get_filename_component(RELATIVE_PATH ${f} DIRECTORY)
|
||||||
|
install(
|
||||||
|
FILES ${CMAKE_BINARY_DIR}/src/${f}
|
||||||
|
DESTINATION ${LIBWEBRTC_INSTALL_INCLUDE_DIR}/${RELATIVE_PATH}
|
||||||
|
COMPONENT Headers
|
||||||
|
)
|
||||||
|
endforeach()
|
||||||
Loading…
Add table
Reference in a new issue