fix(cmake): fix include ceres and move definitions to mynteye.h
This commit is contained in:
@@ -74,10 +74,23 @@ struct glog_init {
|
||||
}
|
||||
};
|
||||
|
||||
#include "mynteye/mynteye.h"
|
||||
|
||||
#ifdef WITH_CAM_MODELS
|
||||
|
||||
#define MAX_LOG_LEVEL google::INFO
|
||||
|
||||
// include ceres miniglog
|
||||
#include "glog/logging.h"
|
||||
|
||||
#else
|
||||
|
||||
#define MYNTEYE_MAX_LOG_LEVEL google::INFO
|
||||
|
||||
#include "mynteye/miniglog.h"
|
||||
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
#endif // MYNTEYE_LOGGER_H_
|
||||
|
||||
@@ -68,4 +68,19 @@ void UNUSED(T &&...) {}
|
||||
|
||||
MYNTEYE_END_NAMESPACE
|
||||
|
||||
#cmakedefine WITH_API
|
||||
#cmakedefine WITH_DEVICE_INFO_REQUIRED
|
||||
#cmakedefine WITH_CAM_MODELS
|
||||
|
||||
#cmakedefine WITH_OPENCV
|
||||
#cmakedefine WITH_OPENCV2
|
||||
#cmakedefine WITH_OPENCV3
|
||||
#cmakedefine WITH_OPENCV4
|
||||
#cmakedefine WITH_OPENCV_WORLD
|
||||
|
||||
#cmakedefine WITH_GLOG
|
||||
#cmakedefine WITH_FILESYSTEM
|
||||
#cmakedefine WITH_BOOST_FILESYSTEM
|
||||
#cmakedefine WITH_NATIVE_FILESYSTEM
|
||||
|
||||
#endif // MYNTEYE_MYNTEYE_H_
|
||||
|
||||
Reference in New Issue
Block a user