Skip to content

Commit

Permalink
this should compile WebARKitLib
Browse files Browse the repository at this point in the history
  • Loading branch information
kalwalt committed Sep 15, 2023
1 parent ebfddf2 commit 0cc63af
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions WebARKit/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,11 @@ set(BUILD_opencv_rgbd OFF)
set(BUILD_opencv_shape OFF)
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_ximgproc OFF)
set(BUILD_opencv_bgsegm OFF)
Expand Down Expand Up @@ -69,9 +72,9 @@ 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)
#set(BUILD_opencv_xfeatures2d ON)

get_filename_component(PARENT_DIR ./ ABSOLUTE)

Expand Down Expand Up @@ -111,6 +114,7 @@ target_include_directories(WebARKitLib PRIVATE
${OPENCV_MODULE_opencv_imgcodecs_LOCATION}/include
${OPENCV_MODULE_opencv_video_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)

0 comments on commit 0cc63af

Please sign in to comment.