Is there a way to quickly scaffold a basic C++ CMake project using CMake itself? For examples in an empty directory calling cmake new
then CMake asks a few questions eg project name, lisence and generator. Then CMake generates all the required files and directories, eg CMakeLists.txt file, src directory and probably initialize it as Git repository.
You may write a CMake function to create an empty project with a specific layout. file command helps you to create files and directories.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.