PhoenixGenerator  2.0.4
Set of tools to generate code
Loading...
Searching...
No Matches
cmakelist_generator.cpp File Reference
+ Include dependency graph for cmakelist_generator.cpp:

Go to the source code of this file.

Functions

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.
 

Function Documentation

◆ getCMakeListsHeader()

PString getCMakeListsHeader ( )

Get the CMakeLists.txt header.

Returns
CMakeLists.txt header

Definition at line 12 of file cmakelist_generator.cpp.

12 {
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}

Referenced by generator_class_cpp_test(), generator_class_full(), generator_class_testCMakeLists(), project_wrapper_classTest(), and project_wrapper_generator_setuppy().

+ Here is the caller graph for this function:

◆ getFindPackageFileName()

PString getFindPackageFileName ( const PString & libName)

Gets the name of the find_package cmake macro with the library name.

Parameters
libName: library name
Returns
corresponding find_package cmake macro file name

Definition at line 32 of file cmakelist_generator.cpp.

32 {
33 if(libName == "") return "";
34 return "Find" + libName.toUpper() + ".cmake";
35}