Create a directory for your project and copy the required files
The Bifrost SDK uses CMake to build and package operators.
You will need two CMakeLists.txt
files and a PackConfig.json.in
file to build and package your operator.
The Bifrost examples are designed so that you can copy the required files from any one of the examples and use them in your project.
- Create a directory for your operator.
- Copy the top level
CMakeLists.txt
file from one of the examples to this directory. - Create a
src
directory for your source code. - Copy the
src/PackConfig.json.in
file from one of the examples to yoursrc
directory. - Copy the
src/CMakeLists.txt
file from one of the examples to yoursrc
directory. - Edit the
CMakeLists.txt
files to have the right project, source, and target names.