Find macro generation

CMake works with FindProjectName.cmake files to check if a package is installed. But developing such macro is tedious and repetitive

phoenix_create_find(PhoenixControl
    phoenix_control        # List of libraries to be found
    phoenix_control.h     # List of headers to be found
    ""                   # Extra cmake script if necessary
    DataStream StringUtils) # All needed dependencies when the project is installed (could be void)
  • projectName : Name of the project (or part of it if you prefer to split your project in several parts)
  • libraryTargetName : list of the libraries targets which should be found to consider the project is installed and found
  • headerFile : list of the headers files which should be found to consider the project is installed and found
  • extraIncludeFile : extra cmake macro file to be added to enable extra functionalities
  • Extra Args : list of needed dependencies when the project is installed (could be less than those fetched by pull_extra_module)