Prefix include dir with libwebrtc, install libwebrtc.h header file

This commit is contained in:
Axel Isouard 2017-01-29 13:01:04 +01:00
parent 548218994d
commit 9685d1e09e
No known key found for this signature in database
GPG key ID: 4E64BB3EAAF31C29
2 changed files with 17 additions and 2 deletions

View file

@ -1,7 +1,19 @@
#
# Install headers
#
install(DIRECTORY ${CMAKE_BINARY_DIR}/include/libwebrtc
DESTINATION include)
#
# Install library
#
install(DIRECTORY ${CMAKE_BINARY_DIR}/lib/
DESTINATION lib)
# #
# Create package # Create package
# #
set(CPACK_PACKAGE_NAME "${LIBWEBRTC_MAJOR_VERSION}") set(CPACK_PACKAGE_NAME "LibWebRTC")
set(CPACK_PACKAGE_VERSION_MAJOR "${LIBWEBRTC_MAJOR_VERSION}") set(CPACK_PACKAGE_VERSION_MAJOR "${LIBWEBRTC_MAJOR_VERSION}")
set(CPACK_PACKAGE_VERSION_MINOR "${LIBWEBRTC_MINOR_VERSION}") set(CPACK_PACKAGE_VERSION_MINOR "${LIBWEBRTC_MINOR_VERSION}")
set(CPACK_PACKAGE_VERSION_PATCH "${LIBWEBRTC_PATCH_VERSION}") set(CPACK_PACKAGE_VERSION_PATCH "${LIBWEBRTC_PATCH_VERSION}")

View file

@ -49,9 +49,12 @@ set_target_properties(webrtc PROPERTIES
# Install headers # Install headers
# #
install(DIRECTORY ${LIBWEBRTC_INCLUDE_DIR} install(DIRECTORY ${LIBWEBRTC_INCLUDE_DIR}
DESTINATION "include" DESTINATION "include/libwebrtc"
FILES_MATCHING PATTERN "*.h") FILES_MATCHING PATTERN "*.h")
install(FILES ${CMAKE_INSTALL_PREFIX}/libwebrtc.h
DESTINATION "include/libwebrtc")
# #
# Install library # Install library
# #