![]() |
PhoenixGenerator
2.0.0
Set of tools to generate code
|
Describes a CMake executable. More...
#include <PCMakeListsGenerator.h>
Public Member Functions | |
PString & | getAddDefinitions () |
Gets the addDefinitions of the PCMakeExecutable. More... | |
const PString & | getAddDefinitions () const |
Gets the addDefinitions of the PCMakeExecutable. More... | |
PPath & | getInstallDirectory () |
Gets the installDirectory of the PCMakeExecutable. More... | |
const PPath & | getInstallDirectory () const |
Gets the installDirectory of the PCMakeExecutable. More... | |
PVecString & | getListDependecies () |
Gets the listDependecies of the PCMakeExecutable. More... | |
const PVecString & | getListDependecies () const |
Gets the listDependecies of the PCMakeExecutable. More... | |
PVecPath & | getListSources () |
Gets the listSources of the PCMakeExecutable. More... | |
const PVecPath & | getListSources () const |
Gets the listSources of the PCMakeExecutable. More... | |
PString & | getName () |
Gets the name of the PCMakeExecutable. More... | |
const PString & | getName () const |
Gets the name of the PCMakeExecutable. More... | |
PString & | getOtherCommandAfter () |
Gets the otherCommandAfter of the PCMakeExecutable. More... | |
const PString & | getOtherCommandAfter () const |
Gets the otherCommandAfter of the PCMakeExecutable. More... | |
PString & | getRemoveDefinitions () |
Gets the removeDefinitions of the PCMakeExecutable. More... | |
const PString & | getRemoveDefinitions () const |
Gets the removeDefinitions of the PCMakeExecutable. More... | |
bool & | getWantGenerateFindPackage () |
Gets the wantGenerateFindPackage of the PCMakeExecutable. More... | |
bool | getWantGenerateFindPackage () const |
Gets the wantGenerateFindPackage of the PCMakeExecutable. More... | |
PCMakeExecutable & | operator= (const PCMakeExecutable &other) |
Operator = of class PCMakeExecutable. More... | |
PCMakeExecutable () | |
Constructor of class PCMakeExecutable. More... | |
PCMakeExecutable (const PCMakeExecutable &other) | |
Copy Constructor of class PCMakeExecutable. More... | |
void | setAddDefinitions (const PString &addDefinitions) |
Sets the addDefinitions of the PCMakeExecutable. More... | |
void | setInstallDirectory (const PPath &installDirectory) |
Sets the installDirectory of the PCMakeExecutable. More... | |
void | setListDependecies (const PVecString &listDependecies) |
Sets the listDependecies of the PCMakeExecutable. More... | |
void | setListSources (const PVecPath &listSources) |
Sets the listSources of the PCMakeExecutable. More... | |
void | setName (const PString &name) |
Sets the name of the PCMakeExecutable. More... | |
void | setOtherCommandAfter (const PString &otherCommandAfter) |
Sets the otherCommandAfter of the PCMakeExecutable. More... | |
void | setRemoveDefinitions (const PString &removeDefinitions) |
Sets the removeDefinitions of the PCMakeExecutable. More... | |
void | setWantGenerateFindPackage (bool wantGenerateFindPackage) |
Sets the wantGenerateFindPackage of the PCMakeExecutable. More... | |
virtual | ~PCMakeExecutable () |
Destructor of class PCMakeExecutable. More... | |
Protected Member Functions | |
void | copyPCMakeExecutable (const PCMakeExecutable &other) |
Copy Function of class PCMakeExecutable. More... | |
Private Member Functions | |
void | initialisationPCMakeExecutable () |
Initialisation Function of class PCMakeExecutable. More... | |
Private Attributes | |
PString | p_addDefinitions |
String to pass to the add_definitions. More... | |
PPath | p_installDirectory |
Name of the install directory of the executable. More... | |
PVecString | p_listDependecies |
List of the executable libraries dependencies. More... | |
PVecPath | p_listSources |
Lists of the sources. More... | |
PString | p_name |
Name of the executable. More... | |
PString | p_otherCommandAfter |
Other command after the definition of the target. More... | |
PString | p_removeDefinitions |
String to pass to the remove_definitions. More... | |
bool | p_wantGenerateFindPackage |
True if we want to have the CMake find_package file generated for the given executable. More... | |
Describes a CMake executable.
Definition at line 77 of file PCMakeListsGenerator.h.
PCMakeExecutable::PCMakeExecutable | ( | ) |
Constructor of class PCMakeExecutable.
Definition at line 268 of file PCMakeListsGenerator.cpp.
References initialisationPCMakeExecutable().
PCMakeExecutable::PCMakeExecutable | ( | const PCMakeExecutable & | other | ) |
Copy Constructor of class PCMakeExecutable.
other | : PCMakeExecutable we want ot copy |
Definition at line 275 of file PCMakeListsGenerator.cpp.
References copyPCMakeExecutable().
|
virtual |
Destructor of class PCMakeExecutable.
Definition at line 280 of file PCMakeListsGenerator.cpp.
|
protected |
Copy Function of class PCMakeExecutable.
other | : PCMakeExecutable we want ot copy |
Definition at line 464 of file PCMakeListsGenerator.cpp.
References p_addDefinitions, p_installDirectory, p_listDependecies, p_listSources, p_name, p_otherCommandAfter, p_removeDefinitions, and p_wantGenerateFindPackage.
Referenced by operator=(), and PCMakeExecutable().
PString & PCMakeExecutable::getAddDefinitions | ( | ) |
Gets the addDefinitions of the PCMakeExecutable.
Definition at line 429 of file PCMakeListsGenerator.cpp.
References p_addDefinitions.
const PString & PCMakeExecutable::getAddDefinitions | ( | ) | const |
Gets the addDefinitions of the PCMakeExecutable.
Definition at line 422 of file PCMakeListsGenerator.cpp.
References p_addDefinitions.
Referenced by saveCMakeExecutable().
PPath & PCMakeExecutable::getInstallDirectory | ( | ) |
Gets the installDirectory of the PCMakeExecutable.
Definition at line 373 of file PCMakeListsGenerator.cpp.
References p_installDirectory.
const PPath & PCMakeExecutable::getInstallDirectory | ( | ) | const |
Gets the installDirectory of the PCMakeExecutable.
Definition at line 366 of file PCMakeListsGenerator.cpp.
References p_installDirectory.
Referenced by saveCMakeExecutable().
PVecString & PCMakeExecutable::getListDependecies | ( | ) |
Gets the listDependecies of the PCMakeExecutable.
Definition at line 387 of file PCMakeListsGenerator.cpp.
References p_listDependecies.
const PVecString & PCMakeExecutable::getListDependecies | ( | ) | const |
Gets the listDependecies of the PCMakeExecutable.
Definition at line 380 of file PCMakeListsGenerator.cpp.
References p_listDependecies.
Referenced by saveCMakeExecutable().
PVecPath & PCMakeExecutable::getListSources | ( | ) |
Gets the listSources of the PCMakeExecutable.
Definition at line 401 of file PCMakeListsGenerator.cpp.
References p_listSources.
const PVecPath & PCMakeExecutable::getListSources | ( | ) | const |
Gets the listSources of the PCMakeExecutable.
Definition at line 394 of file PCMakeListsGenerator.cpp.
References p_listSources.
Referenced by saveCMakeExecutable().
PString & PCMakeExecutable::getName | ( | ) |
Gets the name of the PCMakeExecutable.
Definition at line 359 of file PCMakeListsGenerator.cpp.
References p_name.
const PString & PCMakeExecutable::getName | ( | ) | const |
Gets the name of the PCMakeExecutable.
Definition at line 352 of file PCMakeListsGenerator.cpp.
References p_name.
Referenced by saveCMakeExecutable().
PString & PCMakeExecutable::getOtherCommandAfter | ( | ) |
Gets the otherCommandAfter of the PCMakeExecutable.
Definition at line 443 of file PCMakeListsGenerator.cpp.
References p_otherCommandAfter.
const PString & PCMakeExecutable::getOtherCommandAfter | ( | ) | const |
Gets the otherCommandAfter of the PCMakeExecutable.
Definition at line 436 of file PCMakeListsGenerator.cpp.
References p_otherCommandAfter.
Referenced by saveCMakeExecutable().
PString & PCMakeExecutable::getRemoveDefinitions | ( | ) |
Gets the removeDefinitions of the PCMakeExecutable.
Definition at line 415 of file PCMakeListsGenerator.cpp.
References p_removeDefinitions.
const PString & PCMakeExecutable::getRemoveDefinitions | ( | ) | const |
Gets the removeDefinitions of the PCMakeExecutable.
Definition at line 408 of file PCMakeListsGenerator.cpp.
References p_removeDefinitions.
Referenced by saveCMakeExecutable().
bool & PCMakeExecutable::getWantGenerateFindPackage | ( | ) |
Gets the wantGenerateFindPackage of the PCMakeExecutable.
Definition at line 457 of file PCMakeListsGenerator.cpp.
References p_wantGenerateFindPackage.
bool PCMakeExecutable::getWantGenerateFindPackage | ( | ) | const |
Gets the wantGenerateFindPackage of the PCMakeExecutable.
Definition at line 450 of file PCMakeListsGenerator.cpp.
References p_wantGenerateFindPackage.
|
private |
Initialisation Function of class PCMakeExecutable.
Definition at line 476 of file PCMakeListsGenerator.cpp.
References p_wantGenerateFindPackage.
Referenced by PCMakeExecutable().
PCMakeExecutable & PCMakeExecutable::operator= | ( | const PCMakeExecutable & | other | ) |
Operator = of class PCMakeExecutable.
other | : PCMakeExecutable we want ot copy |
Definition at line 288 of file PCMakeListsGenerator.cpp.
References copyPCMakeExecutable().
void PCMakeExecutable::setAddDefinitions | ( | const PString & | addDefinitions | ) |
Sets the addDefinitions of the PCMakeExecutable.
addDefinitions | : addDefinitions of the PCMakeExecutable |
Definition at line 331 of file PCMakeListsGenerator.cpp.
References p_addDefinitions.
void PCMakeExecutable::setInstallDirectory | ( | const PPath & | installDirectory | ) |
Sets the installDirectory of the PCMakeExecutable.
installDirectory | : installDirectory of the PCMakeExecutable |
Definition at line 303 of file PCMakeListsGenerator.cpp.
References p_installDirectory.
void PCMakeExecutable::setListDependecies | ( | const PVecString & | listDependecies | ) |
Sets the listDependecies of the PCMakeExecutable.
listDependecies | : listDependecies of the PCMakeExecutable |
Definition at line 310 of file PCMakeListsGenerator.cpp.
References p_listDependecies.
void PCMakeExecutable::setListSources | ( | const PVecPath & | listSources | ) |
Sets the listSources of the PCMakeExecutable.
listSources | : listSources of the PCMakeExecutable |
Definition at line 317 of file PCMakeListsGenerator.cpp.
References p_listSources.
void PCMakeExecutable::setName | ( | const PString & | name | ) |
Sets the name of the PCMakeExecutable.
name | : name of the PCMakeExecutable |
Definition at line 296 of file PCMakeListsGenerator.cpp.
References p_name.
void PCMakeExecutable::setOtherCommandAfter | ( | const PString & | otherCommandAfter | ) |
Sets the otherCommandAfter of the PCMakeExecutable.
otherCommandAfter | : otherCommandAfter of the PCMakeExecutable |
Definition at line 338 of file PCMakeListsGenerator.cpp.
References p_otherCommandAfter.
void PCMakeExecutable::setRemoveDefinitions | ( | const PString & | removeDefinitions | ) |
Sets the removeDefinitions of the PCMakeExecutable.
removeDefinitions | : removeDefinitions of the PCMakeExecutable |
Definition at line 324 of file PCMakeListsGenerator.cpp.
References p_removeDefinitions.
void PCMakeExecutable::setWantGenerateFindPackage | ( | bool | wantGenerateFindPackage | ) |
Sets the wantGenerateFindPackage of the PCMakeExecutable.
wantGenerateFindPackage | : wantGenerateFindPackage of the PCMakeExecutable |
Definition at line 345 of file PCMakeListsGenerator.cpp.
References p_wantGenerateFindPackage.
|
private |
String to pass to the add_definitions.
Definition at line 122 of file PCMakeListsGenerator.h.
Referenced by copyPCMakeExecutable(), getAddDefinitions(), and setAddDefinitions().
|
private |
Name of the install directory of the executable.
Definition at line 114 of file PCMakeListsGenerator.h.
Referenced by copyPCMakeExecutable(), getInstallDirectory(), and setInstallDirectory().
|
private |
List of the executable libraries dependencies.
Definition at line 116 of file PCMakeListsGenerator.h.
Referenced by copyPCMakeExecutable(), getListDependecies(), and setListDependecies().
|
private |
Lists of the sources.
Definition at line 118 of file PCMakeListsGenerator.h.
Referenced by copyPCMakeExecutable(), getListSources(), and setListSources().
|
private |
Name of the executable.
Definition at line 112 of file PCMakeListsGenerator.h.
Referenced by copyPCMakeExecutable(), getName(), and setName().
|
private |
Other command after the definition of the target.
Definition at line 124 of file PCMakeListsGenerator.h.
Referenced by copyPCMakeExecutable(), getOtherCommandAfter(), and setOtherCommandAfter().
|
private |
String to pass to the remove_definitions.
Definition at line 120 of file PCMakeListsGenerator.h.
Referenced by copyPCMakeExecutable(), getRemoveDefinitions(), and setRemoveDefinitions().
|
private |
True if we want to have the CMake find_package file generated for the given executable.
Definition at line 126 of file PCMakeListsGenerator.h.
Referenced by copyPCMakeExecutable(), getWantGenerateFindPackage(), initialisationPCMakeExecutable(), and setWantGenerateFindPackage().