Skip to content

Commit

Permalink
fix for test
Browse files Browse the repository at this point in the history
- new opencv-em version 0.1.3
  • Loading branch information
kalwalt committed Oct 25, 2023
1 parent 85e8497 commit 794e269
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
4 changes: 2 additions & 2 deletions WebARKit/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ if(${EMSCRIPTEN_COMP} EQUAL 1)
message("Fetching opencv for emscripten compilation from webarkit/opencv-em ...")
FetchContent_Declare(
build_opencv
URL https://github.com/webarkit/opencv-em/releases/download/0.1.0/opencv-js-4.7.0-emcc-3.1.26.zip
URL https://github.com/webarkit/opencv-em/releases/download/0.1.3/opencv-js-4.7.0-emcc-3.1.26.zip
)
else()
message("Fetching opencv from webarkit/opencv-em ...")
FetchContent_Declare(
build_opencv
URL https://github.com/webarkit/opencv-em/releases/download/0.1.0/opencv-4.7.0.zip
URL https://github.com/webarkit/opencv-em/releases/download/0.1.3/opencv-4.7.0.zip
)
endif()

Expand Down
12 changes: 10 additions & 2 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.24)
cmake_minimum_required(VERSION 3.22)
project(Webarkit_tests)

# GoogleTest requires at least C++14
Expand All @@ -19,9 +19,16 @@ set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)

FetchContent_Declare(
build_opencv
URL https://github.com/webarkit/opencv-em/releases/download/0.1.1/opencv-4.7.0.zip
URL https://github.com/webarkit/opencv-em/releases/download/0.1.3/opencv-4.7.0.zip
)


#[[FetchContent_Declare(
build_opencv
URL /home/kalwalt/kalwalt-github/opencv-em/packaging/opencv-4.7.0.zip
)
]]#

FetchContent_MakeAvailable(googletest build_opencv)

enable_testing()
Expand All @@ -40,6 +47,7 @@ target_include_directories(webarkit_test PRIVATE "${PARENT_DIR}/WebARKit/WebARKi

target_include_directories(webarkit_test PRIVATE
"${build_opencv_SOURCE_DIR}"
"${build_opencv_SOURCE_DIR}/3rdparty/include/libjpeg"
"${build_opencv_SOURCE_DIR}/libs/opencv/include"
"${build_opencv_SOURCE_DIR}/libs/opencv/modules/calib3d/include"
"${build_opencv_SOURCE_DIR}/libs/opencv/modules/core/include"
Expand Down

0 comments on commit 794e269

Please sign in to comment.