Support for cmake-level embedding