Functions
core/testlib/testlib_root_dir.h File Reference

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

#include <vcl_string.h>

Go to the source code of this file.

Functions

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

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.


Function Documentation

vcl_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.

Definition at line 21 of file testlib_root_dir.cxx.