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 foundheaderFile: list of the headers files which should be found to consider the project is installed and foundextraIncludeFile: extracmake macrofile to be added to enable extra functionalitiesExtra Args: list of needed dependencies when the project is installed (could be less than those fetched bypull_extra_module)