I have an application, which stores a database and log files. When I install my application I want that these will be written to a place, where they belong. So perhaps (not an expert here) on Linux my database should be in /var/myApp/database.sql and my log /var/logs/myApp/myAppLog.txt. On Windows / Mac Os these paths are different I suppose.
Can CMake support me to know the right paths similar to how it knows with GNUInstallDirs, where to install my application?
I looked into GNUInstallDirs and found LOCALSTATEDIR, which looks like this could be the right variable for my database at least.
Is this the case? Is there some variable for log files as well?
If CMake cannot support me with such variables, do you know any alternatives?