c++ - How to add autotools-based project as biicode block? -


i need use log4cpp in project , i'd add library biicode block.

i read documentation , tried prepare library biicode.

i source of log4cpp sourceforge's git here. log4cpp has cmakelists.txt, when tried compile cmake on ubuntu linux, there error: missing file log4cpp/config.h.

apparently, log4cpp autotools-based project , needs run ./autogen.sh , ./configure prepare project compilation on ubuntu linux. when called commands, log4cpp/config.h file appeared , able compile project cmake.

then added code cmakelists.txt:

if (biicode)     include(biicode.cmake)     return() endif() 

and in biicode.cmake added code:

# remove tests targets list(remove_item bii_block_exes tests_testcategory tests_testconfig tests_testdll tests_testdailyrollingfileappender tests_testerrorcollision tests_testfilter tests_testfixedcontextcategory tests_testndc tests_testndcmain tests_testnteventlog tests_testpattern tests_testpriority tests_testpropconfig tests_testproperties tests_testpropertyconfig tests_testrollingfileappender tests_test_convenience tests_testbench tests_testmain)  # remove unnecessary files lib list(remove_item bii_lib_src     tests/clock.cpp     tests/clock.hh     tests/ndctest.hh )  add_bii_targets() 

now able build block bii build. when i published block biicode , tried use in other sample project, when run bii find, biicode download log4cpp, not sources (for example, rollingfileappender.cpp not available after downloading).

my sample project use log4cpp:

#include "log4cpp/category.hh"  int main() {     log4cpp::category::getinstance("application");     return 0; } 

and need add section biicode.conf file of sample project:

[includes]     log4cpp/*: halex2005/log4cpp/include 

so, questions is:

  • how can prepare autotools-based project biicode block in right way?
  • how run ./auto-gen.sh , ./configure on bii configure command?
  • how force biicode download full list of sources biicode block?

thanks in advance!


Comments