cmake: use option() in CMakeConfig.txt