CMake: Restructure configuration file