Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zchrissirhcz/rocbuild
A set of CMake tools for C/C++ building.
https://github.com/zchrissirhcz/rocbuild
build-tool c cmake cpp cross-platform
Last synced: 2 months ago
JSON representation
A set of CMake tools for C/C++ building.
- Host: GitHub
- URL: https://github.com/zchrissirhcz/rocbuild
- Owner: zchrissirhcz
- License: mit
- Created: 2021-03-22T03:20:15.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2024-11-14T15:28:02.000Z (2 months ago)
- Last Synced: 2024-11-14T16:33:02.698Z (2 months ago)
- Topics: build-tool, c, cmake, cpp, cross-platform
- Language: CMake
- Homepage:
- Size: 823 KB
- Stars: 39
- Watchers: 5
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# RocBuild
![Build Status](https://github.com/zchrissirhcz/rocbuild/actions/workflows/build.yml/badge.svg)
## 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.