https://github.com/zchrissirhcz/rocbuild
Better CMake Experience
https://github.com/zchrissirhcz/rocbuild
build-tool c cmake cpp
Last synced: 10 months ago
JSON representation
Better CMake Experience
- Host: GitHub
- URL: https://github.com/zchrissirhcz/rocbuild
- Owner: zchrissirhcz
- Created: 2021-03-22T03:20:15.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2025-08-02T15:43:17.000Z (11 months ago)
- Last Synced: 2025-08-02T17:32:48.035Z (11 months ago)
- Topics: build-tool, c, cmake, cpp
- Language: CMake
- Homepage:
- Size: 891 KB
- Stars: 37
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
Awesome Lists containing this project
README
# RocBuild

## rocsetup.cmake
[rocsetup.cmake](rocsetup.cmake) is a starter program for CMake configure step.
Usage:
```pwsh
cmake -P rocsetup.cmake -p vs2022 -a x64 -S . -B build
```
Will parse and then run:
```pwsh
cmake -S . -B build -G "Visual Studio 17 2022" -A x64
```
## rocbuild.cmake
[rocbuild.cmake](rocbuild.cmake) is a set of functions/macros for daily building opeorations:
- use `CMAKE_BINARY_DIR` as output location for artifacts: `.a/.lib/.dll/.so/.exe/...`
- copy dlls for recursive shared dependencies
- copy OpenCV's videoio plugin dlls
- enable Ninja colorful output by default
- set debug postfix for artifacts under Debug build type for multi-config generator
- hide symbols for shared library for gcc/clang/appleclang
- remove unused data/function for gcc/clang/appleclang
- more fuctionalities to be added...
Usage: add one line in your `CMakeLists.txt`:
```cmake
include(rocbuild.cmake)
```
## plugins
[plugins directory](plugins/README.md) provides a collection of standalone cmake plugins.