Commit 2feb23cf authored by Alexander Alekhin's avatar Alexander Alekhin

cmake: include contrib modules into "opencv_world"

parent 6d41124d
......@@ -3,7 +3,6 @@ if(WINRT)
endif()
set(the_description "Deep neural network module. It allows to load models from different frameworks and to make forward pass")
set(OPENCV_MODULE_IS_PART_OF_WORLD OFF)
ocv_add_module(dnn opencv_core opencv_imgproc PRIVATE_REQUIRED "${LAPACK_LIBRARIES}" WRAP python matlab)
ocv_warnings_disable(CMAKE_CXX_FLAGS -Wno-shadow -Wno-parentheses -Wmaybe-uninitialized -Wsign-promo
......@@ -36,7 +35,7 @@ endif()
# ----------------------------------------------------------------------------
# Resolve libprotobuf dependency
# ----------------------------------------------------------------------------
include(cmake/OpenCVFindLibProtobuf.cmake)
include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/OpenCVFindLibProtobuf.cmake)
ocv_source_group("Src\\protobuf" FILES ${PROTOBUF_SRCS} ${PROTOBUF_HDRS})
ocv_module_include_directories(include ${PROTOBUF_INCLUDE_DIR})
......
......@@ -28,7 +28,7 @@ if(PROTOBUF_FOUND)
# nothing
else()
include(${CMAKE_CURRENT_LIST_DIR}/download_protobuf.cmake)
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/3rdparty/protobuf)
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/3rdparty/protobuf ${CMAKE_BINARY_DIR}/3rdparty/protobuf)
set(PROTOBUF_LIBRARIES libprotobuf)
set(PROTOBUF_INCLUDE_DIR ${PROTOBUF_CPP_PATH}/protobuf-3.1.0/src)
endif()
......
......@@ -39,7 +39,7 @@
//
//M*/
#include "precomp.hpp"
#include "../precomp.hpp"
using namespace cv;
using namespace cv::dnn;
......
......@@ -9,7 +9,7 @@
Implementation of Tensorflow models parser
*/
#include "precomp.hpp"
#include "../precomp.hpp"
using namespace cv;
using namespace cv::dnn;
......
......@@ -31,6 +31,5 @@ ocv_warnings_disable(CMAKE_CXX_FLAGS -Winvalid-offsetof)
set(the_description "Hierarchical Data Format I/O")
ocv_define_module(hdf opencv_core WRAP python)
include_directories(${HDF5_INCLUDE_DIRS})
target_link_libraries(opencv_hdf ${HDF5_LIBRARIES})
ocv_target_link_libraries(${the_module} ${HDF5_LIBRARIES})
ocv_include_directories(${HDF5_INCLUDE_DIRS})
......@@ -3,7 +3,6 @@ if(CV_ICC AND NOT MSVC)
endif()
set(the_description "Saliency API")
set(OPENCV_MODULE_IS_PART_OF_WORLD OFF)
ocv_define_module(saliency opencv_imgproc opencv_highgui opencv_features2d WRAP python)
......
......@@ -39,7 +39,7 @@
//
//M*/
#include "precomp.hpp"
#include "../precomp.hpp"
#include "CmFile.hpp"
namespace cv
......
......@@ -39,7 +39,7 @@
//
//M*/
#include "precomp.hpp"
#include "../precomp.hpp"
#include "CmShow.hpp"
#include "opencv2/core.hpp"
#include <opencv2/highgui.hpp>
......
......@@ -39,7 +39,7 @@
//
//M*/
#include "precomp.hpp"
#include "../precomp.hpp"
#include "CmShow.hpp"
namespace cv
......
......@@ -39,7 +39,7 @@
//
//M*/
#include "precomp.hpp"
#include "../precomp.hpp"
namespace cv
{
......
......@@ -39,7 +39,7 @@
//
//M*/
#include "precomp.hpp"
#include "../precomp.hpp"
#include "BING/kyheader.hpp"
#include "CmTimer.hpp"
......
set(the_description "Contributed/Experimental Algorithms for Salient 2D Features Detection")
ocv_define_module(xfeatures2d opencv_core opencv_imgproc opencv_features2d opencv_calib3d opencv_shape opencv_highgui opencv_videoio opencv_ml
OPTIONAL opencv_cudaarithm WRAP python java)
include(cmake/download_vgg.cmake)
include(cmake/download_boostdesc.cmake)
include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/download_vgg.cmake)
include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/download_boostdesc.cmake)
......@@ -57,7 +57,7 @@ References:
ACM, 2010.
*/
#include "precomp.hpp"
#include "../precomp.hpp"
#include "grayscale_bitmap.hpp"
......
......@@ -57,7 +57,7 @@ References:
ACM, 2010.
*/
#include "precomp.hpp"
#include "../precomp.hpp"
#include "opencv2/core/core_c.h" // <- because CV_REDUCE_SUM was undeclared without it
#include "pct_clusterizer.hpp"
......
......@@ -57,7 +57,7 @@ References:
ACM, 2010.
*/
#include "precomp.hpp"
#include "../precomp.hpp"
#include "pct_sampler.hpp"
......
set(the_description "Extended image processing module. It includes edge-aware filters and etc.")
set(OPENCV_MODULE_IS_PART_OF_WORLD OFF)
ocv_define_module(ximgproc opencv_imgproc opencv_core opencv_highgui opencv_calib3d WRAP python)
target_link_libraries(opencv_ximgproc)
set(the_description "Object detection algorithms")
ocv_define_module(xobjdetect opencv_core opencv_imgproc opencv_highgui opencv_objdetect WRAP python)
if (NOT APPLE_FRAMEWORK)
add_subdirectory(tools)
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/tools ${CMAKE_CURRENT_BINARY_DIR}/tools)
endif()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment