add imported target example and cmake 3.5.1 docker

This commit is contained in:
Thom Troy
2016-08-19 22:28:42 +01:00
parent f9f1a5bbb0
commit bb61b1683d
9 changed files with 185 additions and 2 deletions

View File

@@ -0,0 +1,24 @@
#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;
}