Hello,
I am currently writing a few libraries, some of which have some data files (e.g. a large file containing coefficients for a calculation).
The libraries require the data files in order to work - they are useless without them. At the moment, I am doing something very, very dirty, like:
Code:
#define DATA_FILE_PATH "~/code/EGM96/trunk/input.dat"
Which is so wrong on so many levels.
I am using cmake (and am very new to it) as the build system and would like to know the best practice for data files, and even arrangements for outputting binaries from the build process.
The code is laid out like
Code:
~/code
~/code/library1
~/code/library2
~/code/ProgramRelyingOnAboveLibrariesAndDataFiles
Eventually, I'd like to be able to do "make install" to place them in a nice install location.
Completely open to suggestions.
Damien.