Question: how to create cmake cache?
Answer: Run CMake in an empty binary directory to generate the initial version of the project & cache. In CMake GUI or ccmake or similar, inspect the cache variables set up by the initial run and modify them as you see fit. Re-run CMake (or just its Configure step if your UI offers that).