I am trying to convert a header-only library into a block. The library already uses CMake and contains test and example programs. I've gone through biicode documentation but not clear how to create block for existing project. I am confused whether I should do bii init -L or bii cpp:configure. I tried specifying Boost as requirement in biicode.conf but getting WARN: Removing unused reference to "biicode/boost: 0"
Please let me know the steps to create block for existing project, thanks.
You should start using
bii init -Linside the library's folder. Then, following this steps on the docs, check for unresolved dependencies withbii depscommand, adapt biicode.conf file (if needed), and add the external dependencies.Also adapt your current CMakeLists.txt with:
biicode.cmake file should at least have
ADD_BII_TARGETS()in it, as you're depending on Boost, yours should look like the code below, here's a guide explaining how depend on Boost.Run
bii findto retrieve the depencencies andbii configureto configure it to your current config and build withbii build. Check common issues building in the docs here.For issues using boost - biicode has a boost repository in github.