Part 4 : Find macro generation



CMake works with FindProjectName.cmake files to check if a package is installed. But developping such macro is tedious and repetitive
1
2
3
4
5
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 you 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 functionnalities
  • Extra Args : list of needed dependencies when the project is installed (could be less than those fetched by pull_extra_module)