Files
cmake-examples/05-unit-testing/catch2-vendored/main.cpp
Kingsley Chen 0f53692371 Update unit testing examples to use catch2
catch is no longer maintained and all relevant examples should be
updated.
2019-01-08 00:11:06 +08:00

25 lines
540 B
C++

#include <iostream>
#include <boost/shared_ptr.hpp>
#include <boost/filesystem.hpp>
int main(int argc, char *argv[])
{
std::cout << "Hello Third Party Include!" << std::endl;
// use a shared ptr
boost::shared_ptr<int> isp(new int(4));
// trivial use of boost filesystem
boost::filesystem::path path = "/usr/share/cmake/modules";
if(path.is_relative())
{
std::cout << "Path is relative" << std::endl;
}
else
{
std::cout << "Path is not relative" << std::endl;
}
return 0;
}