core
testlib
testlib_root_dir.h
Go to the documentation of this file.
1
#ifndef testlib_root_dir_h_
2
#define testlib_root_dir_h_
3
//:
4
// \file
5
// \brief Function to return root directory (i.e. the parent directory of both core and contrib).
6
// \author Tim Cootes
7
// \verbatim
8
// Modifications
9
// 17-05-2001 I. Scott - Moved from vul to testlib
10
// \endverbatim
11
#include <string>
12
#ifdef _MSC_VER
13
# include <vcl_msvc_warnings.h>
14
#endif
15
16
// macros to stringify compiler -D path value
17
#define TEST_STR(x) #x
18
#define TEST_PATH_DEFINE(x) TEST_STR(x)
19
20
//: Return source root directory (i.e. the parent directory of both core and contrib).
21
// *** Only use this directory tree for read-only operations! ***
22
//
23
// If the file vcl_where_root_dir.h has been automatically generated
24
// during configuration (which will happen with cmake) then the
25
// appropriate source directory will be returned.
26
//
27
// If another build system is used in which this is not created,
28
// the function will return the value of either of the environment
29
// variables: VXLSRC, VCLSRC or VXL_SRC in that order.
30
std::string
testlib_root_dir
();
31
32
#endif // testlib_root_dir_h_
testlib_root_dir
std::string testlib_root_dir()
Return source root directory (i.e. the parent directory of both core and contrib).
Definition:
testlib_root_dir.cxx:17
Generated by
1.8.15