Build root not needed anymore, just define webrtc as the library's name, export the package

This commit is contained in:
Axel Isouard 2017-02-05 06:27:08 -08:00
parent 5ccda05d8c
commit fc819a24b6
No known key found for this signature in database
GPG key ID: D30914735883C824

View file

@ -113,12 +113,7 @@ elseif (WIN32)
list(APPEND LIBWEBRTC_DEFINITIONS WEBRTC_WIN NOMINMAX _CRT_SECURE_NO_WARNINGS) list(APPEND LIBWEBRTC_DEFINITIONS WEBRTC_WIN NOMINMAX _CRT_SECURE_NO_WARNINGS)
endif(UNIX) endif(UNIX)
set(LIBWEBRTC_LIBRARY_NAME ${CMAKE_STATIC_LIBRARY_PREFIX}webrtc${CMAKE_STATIC_LIBRARY_SUFFIX}) set(LIBWEBRTC_LIBRARIES webrtc)
set(LIBWEBRTC_LIBRARY_PATH ${CMAKE_BINARY_DIR}/${LIBWEBRTC_INSTALL_LIB_DIR}/${LIBWEBRTC_LIBRARY_NAME})
set(LIBWEBRTC_BUILD_ROOT ${CMAKE_SOURCE_DIR}/src/out/Default)
add_subdirectory(Targets) add_subdirectory(Targets)
export(PACKAGE LibWebRTC)
if (BUILD_SAMPLES)
add_subdirectory(Samples)
endif (BUILD_SAMPLES)