Knitschi / CMakeProjectFramework

A C++ project infrastructure.
MIT License
2 stars 2 forks source link

Implement a deep integration of the conan package manager #14

Open Knitschi opened 4 years ago

Knitschi commented 4 years ago

Implementing this ticket is not possible if the conan-profile file does not allow defining arbitrary cmake variables. Before I work on this, I have to check that this is possible.

I imagine the following setup:

  1. The file that stores the build-configuration is changed from the xxx.config.cmake file to the conan-profile file. The 1_Configure.py script must be changed to support writing new options into that file via command line.
  2. CPFBuildscript will get the new build-step script 2_GetDependencies.py. The numbers of the following steps need to be incremented accordingly. I should also consider dropping the numbers completely. The GetDependencies.py script will then run the conan install step which downloads or builds the dependencies and creates the conanbuildinfo.cmake file in the build-tree. This file is used to inject the configuration into the CMake generate step.

Problems: