rbdlsim/3rdparty/rbdl/tests/main.cc

22 lines
366 B
C++

#define CATCH_CONFIG_RUNNER
#include "catch.hpp"
#include <iostream>
#include <string>
#include <rbdl/rbdl.h>
int main (int argc, char *argv[])
{
rbdl_check_api_version (RBDL_API_VERSION);
if (argc > 1) {
std::string arg (argv[1]);
if (arg == "-v" || arg == "--version")
rbdl_print_version();
}
return Catch::Session().run(argc, argv);
}