I have a project with two CMakeLists.txt files: CMakeLists.txt (default) and CMakeLists.2.txt. So my directory tree looks like
project
|---- CMakeLists.txt
|---- CMakeLists.2.txt
|---- main.cpp
|---- otherfile.cpp
I build like:
mkdir build
cd build
cmake ..
make
This uses the default CMakeLists.txt file. How can I specify to build using the CMakeLists.2.txt cmake file?