diff --git a/test/src/webrtcdemo/CMakeLists.txt b/test/src/webrtcdemo/CMakeLists.txt index ce30460..4cd8224 100644 --- a/test/src/webrtcdemo/CMakeLists.txt +++ b/test/src/webrtcdemo/CMakeLists.txt @@ -1,24 +1,21 @@ cmake_minimum_required(VERSION 3.12) -project(test_algorithm) -project(test) project(webrtcdemo) -add_definitions(-std=c++11 "/DWIN32_LEAN_AND_MEAN") +add_definitions(-std=c++11 "/DWIN32_LEAN_AND_MEAN" "/Mdd") message("current dir" ${CMAKE_CURRENT_SOURCE_DIR}) # set(CMAKE_CXX_FLAGS "-fno-elide-constructors") aux_source_directory(. SOURCE) message(info ${SOURCE}) -link_directories("${CMAKE_CURRENT_SOURCE_DIR}/third/xlnt/lib/Debug") -link_directories("${CMAKE_CURRENT_SOURCE_DIR}/third/xlnt/lib/Release") -link_directories("${CMAKE_CURRENT_SOURCE_DIR}/third/webrc/lib") +link_directories("${CMAKE_CURRENT_SOURCE_DIR}/third/lib") +link_directories("${CMAKE_CURRENT_SOURCE_DIR}/third/opencv/staticlib") -link_libraries(xlntd libwebrtc.lib ws2_32.lib winmm.lib DXGI.lib) +link_libraries( libwebrtc.lib ws2_32.lib winmm.lib DXGI.lib + ) -include_directories("${CMAKE_CURRENT_SOURCE_DIR}third/xlnt/include") -message(${CMAKE_CURRENT_SOURCE_DIR}/third/webrc/include) -include_directories("${CMAKE_CURRENT_SOURCE_DIR}/third/webrc/include") +message(${CMAKE_CURRENT_SOURCE_DIR}/third/include) +include_directories("${CMAKE_CURRENT_SOURCE_DIR}/third/include") +include_directories("${CMAKE_CURRENT_SOURCE_DIR}/third/opencv/include") +include_directories("${CMAKE_CURRENT_SOURCE_DIR}/third/opencv/staticlib") -add_executable(test_algorithm ./JudgeFault.cpp ./main.cpp ) -add_executable(test test.cpp JudgeFault.cpp) add_executable(webrtcdemo webrtcdemo.cpp) \ No newline at end of file diff --git a/test/src/webrtcdemo/webrtcdemo.cpp b/test/src/webrtcdemo/webrtcdemo.cpp index 505c4f9..d8b1745 100644 --- a/test/src/webrtcdemo/webrtcdemo.cpp +++ b/test/src/webrtcdemo/webrtcdemo.cpp @@ -1,7 +1,7 @@ /* * @Author: your name * @Date: 2021-10-11 10:01:51 - * @LastEditTime: 2021-10-12 15:29:19 + * @LastEditTime: 2021-10-13 00:29:44 * @LastEditors: Please set LastEditors * @Description: In User Settings Edit * @FilePath: \test_algorithm\webrtcdemo.cpp @@ -28,8 +28,9 @@ class CaptureCallBack :public webrtc::DesktopCapturer::Callback{ virtual void OnCaptureResult(webrtc::DesktopCapturer::Result ret, std::unique_ptr frame){ if(ret == webrtc::DesktopCapturer::Result::SUCCESS){ - std::cout << "capture frame "<< frame.get()->size().width() << " " - << frame.get()->size().height()<<"\r\n"; + std::cout << "capture frame " + << frame.get()->size().width() << " " + << frame.get()->size().height() << "\r\n"; } } };