PhoenixGenerator  2.0.4
Set of tools to generate code
Loading...
Searching...
No Matches
cmakelist_generator.cpp
Go to the documentation of this file.
1/***************************************
2 Auteur : Pierre Aubert
3 Mail : pierre.aubert@lapp.in2p3.fr
4 Licence : CeCILL-C
5****************************************/
6
8
10
13 PString body;
14 body += "#========================================\n";
15 body += "#\tAuteur : Pierre Aubert\n";
16 body += "#\tMail : pierre.aubert@lapp.in2p3.fr\n";
17 body += "#\tLicence : CeCILL-C\n";
18 body += "#========================================\n\n";
19
20 body += "#========================================\n";
21 body += "#\tThis file was generated automatically by phoenix_filegenerator https://gitlab.in2p3.fr/CTA-LAPP/PHOENIX_LIBS2/code-generator/PhoenixFileGenerator\n";
22 body += "#\tusing phoenix_generator library https://gitlab.in2p3.fr/CTA-LAPP/PHOENIX_LIBS2/code-generator/PhoenixGenerator\n";
23 body += "#\tYou should not modify this file\n";
24 body += "#========================================\n\n";
25 return body;
26}
27
29
32PString getFindPackageFileName(const PString & libName){
33 if(libName == "") return "";
34 return "Find" + libName.toUpper() + ".cmake";
35}
36
PString getCMakeListsHeader()
Get the CMakeLists.txt header.
PString getFindPackageFileName(const PString &libName)
Gets the name of the find_package cmake macro with the library name.