ufdate cmake

This commit is contained in:
Andrei Yankovich 2020-09-28 23:42:54 +03:00
parent f84faab0dd
commit f873269780
3 changed files with 13 additions and 2 deletions

2
CMake

@ -1 +1 @@
Subproject commit b0765bd212bd0a4fd310cb3dd99b4f1f8ac5dc57 Subproject commit 93ff4e899ed4e39b6d3e882fcc6acdf199e729e3

View File

@ -105,7 +105,11 @@ void Params::clearParsedData() {
} }
QString Params::getCurrentExecutable() { QString Params::getCurrentExecutable() {
return getStrArg(APP_PATH) + "/" + getStrArg(APP_NAME); return getCurrentExecutableDir() + "/" + getStrArg(APP_NAME);
}
QString Params::getCurrentExecutableDir() {
return getStrArg(APP_PATH);
} }
int Params::size() { int Params::size() {

View File

@ -164,6 +164,13 @@ public:
* @return path to current executable. * @return path to current executable.
*/ */
static QString getCurrentExecutable(); static QString getCurrentExecutable();
/**
* @brief getCurrentExecutableDir This method return a path to a folder with the current executable.
* @return path of executable.
*/
static QString getCurrentExecutableDir();
}; };
} }