Use configure_file to set QTK_RESOURCES

This commit is contained in:
2022-08-14 18:17:05 -04:00
parent 44d9092306
commit 86b3f78368
6 changed files with 60 additions and 106 deletions

View File

@@ -1,9 +0,0 @@
/*##############################################################################
## Author: Shaun Reed ##
## Legal: All Content (c) 2022 Shaun Reed, all rights reserved ##
## About: Manage files and resources used by qtk ##
## ##
## Contact: shaunrd0@gmail.com | URL: www.shaunreed.com | GitHub: shaunrd0 ##
##############################################################################*/
#include <resourcemanager.h>

View File

@@ -8,7 +8,7 @@
#include <string>
#include <resources.h>
#include <src/qtkresources.h>
#ifndef QTK_RESOURCEMANAGER_H
#define QTK_RESOURCEMANAGER_H
@@ -28,7 +28,7 @@ public:
*/
static std::string getPath(const std::string & path) {
// Only construct qtk resource path if in qrc format; else return it as-is
return path[0] == ':' ? QTK_RESOURCES_DIR + path.substr(1) : path;
return path[0] == ':' ? QTK_RESOURCES + path.substr(1) : path;
}
} RM;