mirror of
https://github.com/UltraCoderRU/libwebrtc.git
synced 2026-01-28 03:15:11 +00:00
Prefix include dir with libwebrtc, install libwebrtc.h header file
This commit is contained in:
parent
548218994d
commit
9685d1e09e
2 changed files with 17 additions and 2 deletions
|
|
@ -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
|
||||
#
|
||||
set(CPACK_PACKAGE_NAME "${LIBWEBRTC_MAJOR_VERSION}")
|
||||
set(CPACK_PACKAGE_NAME "LibWebRTC")
|
||||
set(CPACK_PACKAGE_VERSION_MAJOR "${LIBWEBRTC_MAJOR_VERSION}")
|
||||
set(CPACK_PACKAGE_VERSION_MINOR "${LIBWEBRTC_MINOR_VERSION}")
|
||||
set(CPACK_PACKAGE_VERSION_PATCH "${LIBWEBRTC_PATCH_VERSION}")
|
||||
|
|
|
|||
|
|
@ -49,9 +49,12 @@ set_target_properties(webrtc PROPERTIES
|
|||
# Install headers
|
||||
#
|
||||
install(DIRECTORY ${LIBWEBRTC_INCLUDE_DIR}
|
||||
DESTINATION "include"
|
||||
DESTINATION "include/libwebrtc"
|
||||
FILES_MATCHING PATTERN "*.h")
|
||||
|
||||
install(FILES ${CMAKE_INSTALL_PREFIX}/libwebrtc.h
|
||||
DESTINATION "include/libwebrtc")
|
||||
|
||||
#
|
||||
# Install library
|
||||
#
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue