Skip to content

zchrissirhcz/rocbuild

Repository files navigation

RocBuild

Build Status

rocsetup.cmake

rocsetup.cmake is a starter program for CMake configure step.

Usage:

cmake -P rocsetup.cmake -p vs2022 -a x64

Will parse and then run:

cmake -S . -B build -G "Visual Studio 17 2022" -A x64

rocbuild.cmake

rocbuild.cmake is a set of functions/macros for daily building opeorations:

  • copy dlls for recursive shared dependencies
  • copy OpenCV's videoio plugin dlls
  • enable Ninja colorful output by default
  • use CMAKE_BINARY_DIR as output location for artifacts: .a/.lib/.dll/.so/.exe/...
  • more fuctionalities to be added...

Usage: add one line in your CMakeLists.txt:

include(rocbuild.cmake)

plugins

plugins directory provides a collection of standalone cmake plugins.