7 #ifndef __CMAKELIST_GENERATOR_H__
8 #define __CMAKELIST_GENERATOR_H__
std::vector< PPath > PVecPath
std::vector< PString > PVecString
Describes a CMake executable.
Describes a CMake library.
Describes a CMakeLists.txt file.
Path of a directory or a file.
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.