Skip to content

Commit

Permalink
Update opencv headers
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruben Smits committed Jan 4, 2021
1 parent a870d5f commit dcc8c40
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
6 changes: 5 additions & 1 deletion ar_track_alvar/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,13 @@ find_package(OpenCV REQUIRED)
find_package(TinyXML REQUIRED)

include(CheckCXXCompilerFlag)
CHECK_CXX_COMPILER_FLAG("-std=c++14" COMPILER_SUPPORTS_CXX14)
CHECK_CXX_COMPILER_FLAG("-std=c++11" COMPILER_SUPPORTS_CXX11)
CHECK_CXX_COMPILER_FLAG("-std=c++0x" COMPILER_SUPPORTS_CXX0X)
if(COMPILER_SUPPORTS_CXX11)

if(COMPILER_SUPPORTS_CXX14)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14")
elseif(COMPILER_SUPPORTS_CXX11)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
elseif(COMPILER_SUPPORTS_CXX0X)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x")
Expand Down
2 changes: 1 addition & 1 deletion ar_track_alvar/include/ar_track_alvar/FileFormatUtils.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
*/

#include "Alvar.h"
#include "cv.h"
#include "opencv2/core/core_c.h"
#include "tinyxml.h"

namespace alvar {
Expand Down
3 changes: 1 addition & 2 deletions ar_track_alvar/include/ar_track_alvar/Util.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@
#include <iostream>
#include <iomanip>
#include <sstream>
#include <cxcore.h>
#include <cv.h>
#include <opencv2/core.hpp>
#include <cmath> //for abs
#include <map>
#include <opencv2/calib3d/calib3d_c.h> //Compatibility with OpenCV 3.x
Expand Down
2 changes: 1 addition & 1 deletion ar_track_alvar/src/Marker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

#include "ar_track_alvar/Alvar.h"
#include "ar_track_alvar/Marker.h"
#include "highgui.h"
#include "opencv2/highgui.hpp"

template class ALVAR_EXPORT alvar::MarkerIteratorImpl<alvar::Marker>;
template class ALVAR_EXPORT alvar::MarkerIteratorImpl<alvar::MarkerData>;
Expand Down
1 change: 1 addition & 0 deletions ar_track_alvar/src/Pose.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
*/

#include "ar_track_alvar/Pose.h"
#include "opencv2/core/core_c.h"

using namespace std;

Expand Down

0 comments on commit dcc8c40

Please sign in to comment.