PhoenixGenerator  2.0.0
Set of tools to generate code
cmakelist_generator.h
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 
7 #ifndef __CMAKELIST_GENERATOR_H__
8 #define __CMAKELIST_GENERATOR_H__
9 
10 #include "PCMakeListsGenerator.h"
11 
13 PString getFindPackageFileName(const PString & libName);
14 PString getFullLibraryName(const PCMakeLibrary & cmakeLib);
15 bool saveCMakeLibraryFindPackageFile(const PCMakeLibrary & cmakeLib, const PPath & extraFileName = PPath(), const PPath & extraPreviousFileName = PPath());
16 bool saveCMakeLibrary(std::ofstream & fs, const PCMakeLibrary & cmakeLib);
17 bool saveCMakeExecutable(std::ofstream & fs, const PCMakeExecutable & cmakeExecutable);
18 bool saveCMakeUsePackages(std::ofstream & fs, const PVecString & listPackages);
19 bool saveCMakeIncludeDirectories(std::ofstream & fs, const PVecPath & listIncludeDirectories);
20 bool saveCMakeLinkDirectories(std::ofstream & fs, const PVecPath & listLinkDirectories);
21 bool saveCMakeListsGenerator(const PPath & fileName, const PCMakeListsGenerator & cmakeGenerator);
22 bool saveCMakeListsGenerator(std::ofstream & fs, const PCMakeListsGenerator & cmakeGenerator);
23 
24 #endif
std::vector< PPath > PVecPath
Definition: PPath.h:75
std::vector< PString > PVecString
Definition: PString.h:96
Describes a CMake executable.
Describes a CMake library.
Describes a CMakeLists.txt file.
Path of a directory or a file.
Definition: PPath.h:17
Extends the std::string.
Definition: PString.h:16
bool saveCMakeLibraryFindPackageFile(const PCMakeLibrary &cmakeLib, const PPath &extraFileName=PPath(), const PPath &extraPreviousFileName=PPath())
Saves the find_package cmake macro with the library file.
bool saveCMakeLinkDirectories(std::ofstream &fs, const PVecPath &listLinkDirectories)
Saves the list of link directories.
PString getCMakeListsHeader()
Get the CMakeLists.txt header.
bool saveCMakeExecutable(std::ofstream &fs, const PCMakeExecutable &cmakeExecutable)
Saves a cmake executable in a file.
bool saveCMakeIncludeDirectories(std::ofstream &fs, const PVecPath &listIncludeDirectories)
Saves the list of include directories.
bool saveCMakeLibrary(std::ofstream &fs, const PCMakeLibrary &cmakeLib)
Saves a cmake library in a file.
bool saveCMakeUsePackages(std::ofstream &fs, const PVecString &listPackages)
Saves the list of packages dependencies.
PString getFindPackageFileName(const PString &libName)
Gets the name of the find_package cmake macro with the library name.
PString getFullLibraryName(const PCMakeLibrary &cmakeLib)
Gets the name of the library binary file.
bool saveCMakeListsGenerator(const PPath &fileName, const PCMakeListsGenerator &cmakeGenerator)
Saves the PCMakeListsGenerator.