Код:
Код: Выделить всё
#include
#include
#include
//#include
//#include
//#include "opencv4/opencv2/highgui.hpp"
namespace po = boost::program_options;
int main(int ac, char** av){
std::string mode;
std::string addr;
po::options_description desc("Allowed options");
desc.add_options()
("help, H", "Produce help message")
("exec-mode, E", po::value(&mode)->default_value("exec"), "Choose the option to execute")
("rootaddr, A", po::value(&addr)->default_value("/home/postdoc/ecl_workspace/"), "Root address to save the logs and results")
;
po::variables_map vm;
po::store(po::parse_command_line(ac, av, desc), vm);
po::notify(vm);
if(vm.count("help")) {
std::cout
Подробнее здесь: [url]https://stackoverflow.com/questions/79879782/problems-compiling-code-with-cmake-and-boost-opencv[/url]