From 480912458820acb5aebaa3a884a87b8ea8b22c66 Mon Sep 17 00:00:00 2001 From: Axel Isouard Date: Sat, 24 Sep 2016 13:52:53 +0200 Subject: [PATCH] Write install commands for the library and header files --- Targets/Install/CMakeLists.txt | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/Targets/Install/CMakeLists.txt b/Targets/Install/CMakeLists.txt index e69de29..52973e1 100644 --- a/Targets/Install/CMakeLists.txt +++ b/Targets/Install/CMakeLists.txt @@ -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() \ No newline at end of file