22 lines
498 B
C++
22 lines
498 B
C++
#include <iostream>
|
|
#include "../resource/resource.h"
|
|
#include "Version.h"
|
|
|
|
using namespace std;
|
|
|
|
RESOURCE_PACK(res)
|
|
|
|
int main()
|
|
{
|
|
Resource::ResourceMap resMap;
|
|
Resource::getResourcePack_res(resMap);
|
|
|
|
cout << "Testing program for CMakeTemplate version " << VERSION_MAJOR << "." << VERSION_MINOR << endl;
|
|
|
|
cout << resMap["hello.txt"] << endl;
|
|
|
|
cout << "resources available : " << endl << endl;
|
|
for(auto it : resMap)
|
|
cout << it.first << " -> " << it.second << endl;
|
|
}
|