![]() I’d just been using Boost so I decided to continue with it. Note that this isn’t a judgement on docopt. My Conan.cmake is almost identical to the starter projects’ with the exception that I replaced docopt with Boost. The Conan.cmake file that is part of the C++ starter project creates a macro that does the Conan setup. Given that Conan is a package manager it was my hope to use it to get Boost and make it easy to include in the project. That being said, it took me more time than I would’ve liked to download the Boost source, build it, and figure out how to get the program options library linked into the EveSDEImporter executable with CMake. There are many ways & libraries for handling command line parameters but, given that I hadn’t played with Boost at all and it is a large and popular set of C++ functionality, I thought I’d go with program options to get some experience with Boost. When I created the EveSDEImporter project and determined that I wanted to handle command line arguments I decided to use Boost’s Program Options library. Goal: Get a Specific Library Within Boost This integration with CMake is what the starter project makes use of and, thus, what I am making use of. It also happens to have great integration with CMake. It is a stand-alone app that can be run by itself. I’d just jumped into using Jason’s starting project as a template without fully understanding the tools in use and I had to learn about them to find the solution.Ĭonan is a package manager that allows for the installation and management of C and C++ dependencies. What is Conan?Īnd why am I giving a summary of what it is when this is a post about a solution to a specific problem? Because defining what Conan is and what it does will help clarify the problem. Anyway, Conan is still great and I highly recommend it. ![]() Given that this is a side project at the moment this may take a while for me to get to. While this isn’t ideal it works and I will, at some point, take a further look into how Conan generates it’s link targets and see if I can help in this regard. After talking to Jerry Wiltse, who is one of the maintainers on cmake_findboost_modular, I decided just to link with Conan’s default target for all of Boost. Short Update - I had some problems with cmake_findboost_modular creating the necessary shortcuts to properly link the Boost::program_options library on Windows with Visual Studio 2019.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |