Use CMake's "configure_file" functionality to store path to the tutorial shared directory, enabling tutorial executables build out of source to correctly find the data files.
11 lines
176 B
C
11 lines
176 B
C
#ifndef tutorial_shared_path_h_included
|
|
#define tutorial_shared_path_h_included
|
|
|
|
#include <string>
|
|
|
|
const std::string tutorial_shared_path("@TUTORIAL_SHARED_PATH@");
|
|
|
|
#endif
|
|
|
|
|