Schematika tokenizer (facet object model version)
  • C++ 96.6%
  • CMake 3.4%
Find a file
2024-04-25 14:07:48 -04:00
.github/workflows xo-cmake: github: fix xo-cmake-config path 2024-04-25 13:47:47 -04:00
bin xo-cmake: bugfix: need full CMAKE_INSTALL_FULL_DATADIR 2024-04-25 14:00:29 -04:00
cmake/xo_macros xo-cmake: xo-cmake-config helper script + streamline coverage gen 2024-04-25 13:12:46 -04:00
share/xo-macros xo-cmake: xo-cmake-config helper script + streamline coverage gen 2024-04-25 13:12:46 -04:00
.gitignore .gitignore: + compile_commands.json 2024-04-01 19:47:48 -04:00
CMakeLists.txt xo-cmake: bugfix: fix path for cmake macro install dest 2024-04-25 14:07:48 -04:00
README.md xo-cmake: additions to README 2023-10-16 23:12:14 -04:00

XO cmake modules

Collects cmake macros to be shared across XO projects (e.g. indentlog, reflect, kalman, ..)

Features

  • support for both manyrepo and monorepo projects
  • support for generating cmake xxxConfig.cmake files, so cmake find_package() works reliably

Example

In some XO project foo:

$ cd build
$ PREFIX=/usr/local # or wherever you prefer
$ cmake -DCMAKE_MODULE_PATH=${PREFIX}/share/cmake -DCMAKE_INSTALL_PREFIX=${PREFIX} ..
$ make install

then in foo/CMakeLists.txt:

include(xo_macros/xo_cxx)

when configuring foo:

$ cmake -DCMAKE_MODULE_PATH=${PREFIX}/share/cmake path/to/foo