cbuild [options]
Create a new project
-e, --executable: Create executable project (default)-s, --static: Create static library project-d, --shared: Create shared library project-D, --dep <dependency>: Add project dependency-h, --help: Display this help message-p, --precompile-headers: Create precompiled headers
Build the project
-d, --debug: Build using Debug mode-r, --release: Build using Release mode-p, --prefix: Specify installation directory-c, --configure-only: Configure without building-b, --build-dir: Set build directory-C, --clean-cache: Clean cmake cache before building
Create new project based on CMake.toml
Install built files (uses default path if omitted)
Uninstall installed library
cbuild [选项] <项目名>
创建新项目
-e, --executable:创建可执行项目(默认)-s, --static:创建静态库项目-d, --shared:创建动态库项目-D, --dep <依赖>:添加项目依赖-h, --help:显示此帮助信息-p, --precompile-headers:创建预编译头文件
构建项目
-d, --debug:使用 Debug 模式构建-r, --release:使用 Release 模式构建-p, --prefix:指定安装目录-c, --configure-only:选择是否构建-b, --build-dir:设置构建目录-C, --clean-cache:构建前清理cmake缓存
根据 CMake.toml 创建新项目
安装生成的文件
卸载安装的库