Write install commands for the library and header files

This commit is contained in:
Axel Isouard 2016-09-24 13:52:53 +02:00
parent 5590dfbadc
commit 4809124588

View file

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