GCC Code Coverage Report


Directory: ./
File: src/BackEnd/cmakelist_generator.cpp
Date: 2026-01-30 16:30:53
Exec Total Coverage
Lines: 13 17 76.5%
Functions: 1 2 50.0%
Branches: 10 16 62.5%

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 21 PString getCMakeListsHeader(){
13 21 PString body;
14
1/1
✓ Branch 0 (3→4) taken 21 times.
21 body += "#========================================\n";
15
1/1
✓ Branch 0 (4→5) taken 21 times.
21 body += "#\tAuteur : Pierre Aubert\n";
16
1/1
✓ Branch 0 (5→6) taken 21 times.
21 body += "#\tMail : pierre.aubert@lapp.in2p3.fr\n";
17
1/1
✓ Branch 0 (6→7) taken 21 times.
21 body += "#\tLicence : CeCILL-C\n";
18
1/1
✓ Branch 0 (7→8) taken 21 times.
21 body += "#========================================\n\n";
19
20
1/1
✓ Branch 0 (8→9) taken 21 times.
21 body += "#========================================\n";
21
1/1
✓ Branch 0 (9→10) taken 21 times.
21 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 21 times.
21 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 21 times.
21 body += "#\tYou should not modify this file\n";
24
1/1
✓ Branch 0 (12→13) taken 21 times.
21 body += "#========================================\n\n";
25 21 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