这里给大家介绍一种在头文件中自动判断识别OpenCV的版本号,并据此添加对应的依赖库(.lib文件)的方法。具体代码如下:
#ifndef _PREDEP_H_
#define _PREDEP_H_
#pragma once
#include "targetver.h"
#include <stdio.h>
#include <tchar.h>
#include <iostream>
这里给大家介绍一种在头文件中自动判断识别OpenCV的版本号,并据此添加对应的依赖库(.lib文件)的方法。具体代码如下:
#ifndef _PREDEP_H_
#define _PREDEP_H_
#pragma once
#include "targetver.h"
#include <stdio.h>
#include <tchar.h>
#include <iostream>