If Boost were not REQUIRED thenīoost_FOUND would be an extremely important variable. Specified that Boost was REQUIRED we know thatīoost_FOUND must be true otherwise CMake’s configuration step If Boost has been found thenīoost_FOUND will be true, otherwise it will be false. The most important one, not used here, isīoost_FOUND. We simply link against the list ofįindBoost defines several other variables, which are listed in itsĭocumentation. program_options, are provided by FindBoost in the The paths to all of the boost libraries we requested, #include using std :: cerr using std :: cout using std :: endl #include using std :: string #include namespace po = boost :: program_options #include "ToDoCore/ToDo.h" using ToDoCore :: ToDo int main ( int argc, char ** argv ) toDoCore) Options: -add, which will add a new entry to the to do list, and
#Boost linux cygwin tutorial update#
We will update main to have two command line To turn attention back to it and what we find is that it needs to be guttedĪnd re-done, much like an old kitchen. Languished while we set up testing and streamlined our CMake. Okay, that section title may be a little over the top. Main function to be something useful, let the library do the parsing and ourĪpp will be on it’s way to the top 10 list. Program Options library will do all the hard work for us. Who likes parsing stuff anyway? Well we are in luck as the Boost I know what you are thinking now: parsing command line options is a drag and We need to be able to accept and parse command line options if Your list? Indeed it does, and more! But wait, let’s not get ahead of What’s that? You say that an awesome To Do app allows you to add items to Now that we have our testing simplified and automated we have a greatįoundation upon which to build our amazing command line To Do list app.