Skip to content

Commit

Permalink
minor changes but not solve anything
Browse files Browse the repository at this point in the history
  • Loading branch information
kalwalt committed Sep 17, 2023
1 parent de4fcec commit 8ae03da
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
15 changes: 7 additions & 8 deletions WebARKit/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ set(BUILD_opencv_rapid OFF)
set(BUILD_opencv_structured_light OFF)
set(BUILD_opencv_java OFF)

set(BUILD_opencv_xfeatures2d ON)
set(BUILD_opencv_contrib ON)
set(OPENCV_ENABLE_NONFREE ON)
#set(BUILD_opencv_xfeatures2d ON)
#set(BUILD_opencv_contrib ON)
#set(OPENCV_ENABLE_NONFREE ON)

set(BUILD_opencv_ximgproc OFF)
set(BUILD_opencv_bgsegm OFF)
Expand All @@ -52,7 +52,7 @@ set(BUILD_opencv_tracking OFF)
set(BUILD_opencv_stereo OFF)
set(BUILD_opencv_version OFF)

set(OPENCV_EXTRA_MODULES_PATH ${opencv_contrib_SOURCE_DIR}/modules/)
set(OPENCV_EXTRA_MODULES_PATH ${opencv_contrib_SOURCE_DIR}/modules)

FetchContent_Declare(
opencv
Expand All @@ -71,8 +71,7 @@ FetchContent_Declare(
)

FetchContent_MakeAvailable(opencv opencv_contrib)

#set(OPENCV_EXTRA_MODULES_PATH ${opencv_contrib_SOURCE_DIR}/modules/)
set(OPENCV_EXTRA_MODULES_PATH ${opencv_contrib_SOURCE_DIR}/modules)

#set(BUILD_opencv_xfeatures2d ON)

Expand Down Expand Up @@ -113,8 +112,8 @@ target_include_directories(WebARKitLib PRIVATE
${OPENCV_MODULE_opencv_imgproc_LOCATION}/include
${OPENCV_MODULE_opencv_imgcodecs_LOCATION}/include
${OPENCV_MODULE_opencv_video_LOCATION}/include
${OPENCV_MODULE_opencv_xfeatures2d_LOCATION}/include
#${OPENCV_MODULE_opencv_xfeatures2d_LOCATION}/include
${opencv_contrib_SOURCE_DIR}/modules/xfeatures2d/include
)

target_link_libraries(WebARKitLib opencv_calib3d opencv_core opencv_features2d opencv_flann opencv_imgproc opencv_imgcodecs opencv_video opencv_xfeatures2d)
target_link_libraries(WebARKitLib opencv_calib3d opencv_core opencv_features2d opencv_flann opencv_imgproc opencv_imgcodecs opencv_video)
2 changes: 1 addition & 1 deletion tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ target_include_directories(webarkit_test PRIVATE
${OPENCV_MODULE_opencv_imgproc_LOCATION}/include
${OPENCV_MODULE_opencv_imgcodecs_LOCATION}/include
${OPENCV_MODULE_opencv_video_LOCATION}/include
${OPENCV_MODULE_opencv_xfeatures2d_LOCATION}/include
#${OPENCV_MODULE_opencv_xfeatures2d_LOCATION}/include
${PARENT_DIR}/tests/build/_deps/opencv_contrib-src/modules/xfeatures2d/include
)

Expand Down

0 comments on commit 8ae03da

Please sign in to comment.