Macros | Functions
testlib_root_dir.h File Reference

Function to return root directory (i.e. More...

#include <string>

Go to the source code of this file.

Macros

#define TEST_STR(x)   #x
 
#define TEST_PATH_DEFINE(x)   TEST_STR(x)
 

Functions

std::string testlib_root_dir ()
 Return source root directory (i.e. the parent directory of both core and contrib). More...
 

Detailed Description

Function to return root directory (i.e.

the parent directory of both core and contrib).

Author
Tim Cootes
    Modifications
     17-05-2001 I. Scott - Moved from vul to testlib

Definition in file testlib_root_dir.h.

Macro Definition Documentation

◆ TEST_PATH_DEFINE

#define TEST_PATH_DEFINE (   x)    TEST_STR(x)

Definition at line 18 of file testlib_root_dir.h.

◆ TEST_STR

#define TEST_STR (   x)    #x

Definition at line 17 of file testlib_root_dir.h.

Function Documentation

◆ testlib_root_dir()

std::string testlib_root_dir ( )

Return source root directory (i.e. the parent directory of both core and contrib).

*** Only use this directory tree for read-only operations! ***

If the file vcl_where_root_dir.h has been automatically generated during configuration (which will happen with cmake) then the appropriate source directory will be returned.

If another build system is used in which this is not created, the function will return the value of either of the environment variables: VXLSRC, VCLSRC or VXL_SRC in that order.

Return source root directory (i.e. the parent directory of both core and contrib).

Definition at line 17 of file testlib_root_dir.cxx.