blob: fff408a36fc1f88e6d6570569d482a3bb1b53664 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#ifndef P2_UT_DEFINEDDIRS
#define P2_UT_DEFINEDDIRS
#include <boost/filesystem/path.hpp>
#ifndef ROOT
#error "ROOT needs to be defined at compilation time"
#endif
#define XSTR(s) STR(s)
#define STR(s) #s
const auto BinDir = boost::filesystem::canonical("/proc/self/exe").parent_path();
const boost::filesystem::path RootDir(XSTR(ROOT));
#endif
|