| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | /*************************************** | ||
| 2 | Auteur : Pierre Aubert | ||
| 3 | Mail : pierre.aubert@lapp.in2p3.fr | ||
| 4 | Licence : CeCILL-C | ||
| 5 | ****************************************/ | ||
| 6 | |||
| 7 | #include "cmakelist_generator.h" | ||
| 8 | |||
| 9 | ///Get the CMakeLists.txt header | ||
| 10 | /** @return CMakeLists.txt header | ||
| 11 | */ | ||
| 12 | 16 | PString getCMakeListsHeader(){ | |
| 13 | 16 | PString body; | |
| 14 |
1/1✓ Branch 0 (3→4) taken 16 times.
|
16 | body += "#========================================\n"; |
| 15 |
1/1✓ Branch 0 (4→5) taken 16 times.
|
16 | body += "#\tAuteur : Pierre Aubert\n"; |
| 16 |
1/1✓ Branch 0 (5→6) taken 16 times.
|
16 | body += "#\tMail : pierre.aubert@lapp.in2p3.fr\n"; |
| 17 |
1/1✓ Branch 0 (6→7) taken 16 times.
|
16 | body += "#\tLicence : CeCILL-C\n"; |
| 18 |
1/1✓ Branch 0 (7→8) taken 16 times.
|
16 | body += "#========================================\n\n"; |
| 19 | |||
| 20 |
1/1✓ Branch 0 (8→9) taken 16 times.
|
16 | body += "#========================================\n"; |
| 21 |
1/1✓ Branch 0 (9→10) taken 16 times.
|
16 | body += "#\tThis file was generated automatically by phoenix_filegenerator https://gitlab.in2p3.fr/CTA-LAPP/PHOENIX_LIBS2/code-generator/PhoenixFileGenerator\n"; |
| 22 |
1/1✓ Branch 0 (10→11) taken 16 times.
|
16 | body += "#\tusing phoenix_generator library https://gitlab.in2p3.fr/CTA-LAPP/PHOENIX_LIBS2/code-generator/PhoenixGenerator\n"; |
| 23 |
1/1✓ Branch 0 (11→12) taken 16 times.
|
16 | body += "#\tYou should not modify this file\n"; |
| 24 |
1/1✓ Branch 0 (12→13) taken 16 times.
|
16 | body += "#========================================\n\n"; |
| 25 | 16 | return body; | |
| 26 | ✗ | } | |
| 27 | |||
| 28 | ///Gets the name of the find_package cmake macro with the library name | ||
| 29 | /** @param libName : library name | ||
| 30 | * @return corresponding find_package cmake macro file name | ||
| 31 | */ | ||
| 32 | ✗ | PString getFindPackageFileName(const PString & libName){ | |
| 33 | ✗ | if(libName == "") return ""; | |
| 34 | ✗ | return "Find" + libName.toUpper() + ".cmake"; | |
| 35 | } | ||
| 36 | |||
| 37 |