From fc819a24b62319b77f17d2287b7571bea90888ea Mon Sep 17 00:00:00 2001 From: Axel Isouard Date: Sun, 5 Feb 2017 06:27:08 -0800 Subject: [PATCH] Build root not needed anymore, just define webrtc as the library's name, export the package --- CMakeLists.txt | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 77bc026..5d1baec 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -113,12 +113,7 @@ elseif (WIN32) list(APPEND LIBWEBRTC_DEFINITIONS WEBRTC_WIN NOMINMAX _CRT_SECURE_NO_WARNINGS) endif(UNIX) -set(LIBWEBRTC_LIBRARY_NAME ${CMAKE_STATIC_LIBRARY_PREFIX}webrtc${CMAKE_STATIC_LIBRARY_SUFFIX}) -set(LIBWEBRTC_LIBRARY_PATH ${CMAKE_BINARY_DIR}/${LIBWEBRTC_INSTALL_LIB_DIR}/${LIBWEBRTC_LIBRARY_NAME}) +set(LIBWEBRTC_LIBRARIES webrtc) -set(LIBWEBRTC_BUILD_ROOT ${CMAKE_SOURCE_DIR}/src/out/Default) add_subdirectory(Targets) - -if (BUILD_SAMPLES) - add_subdirectory(Samples) -endif (BUILD_SAMPLES) +export(PACKAGE LibWebRTC)