Change request #184
The configurations paths are a little bit ambiguous and not very well managed. This is much because the NSIS installer let the user install the software on specific location.
1. Get rid of DEFAULT_IRCCD_CONFIG (same for irccdctl).
2. Instead, use CMAKE_INSTALL_PREFIX and GetModuleFileName on Windows to get the installation path / running directory.
The new order should be:
- -c override everything, if this file is not found we abort
- -> CMAKE_INSTALL_PREFIX (for Unix) / GetModuleFileName (Windows) ++ path to irccd.conf
- -> select ./irccd.conf
- -> select user config
A new function may appears to select the correct file easily?