added example for version in test
This commit is contained in:
parent
d2917cb21a
commit
44cbdf7364
@ -3,6 +3,9 @@ cmake_minimum_required(VERSION 2.8)
|
||||
|
||||
set(CMAKE_TEMPLATE_PATH "..")
|
||||
|
||||
set(VERSION_MAJOR 0)
|
||||
set(VERSION_MINOR 1)
|
||||
|
||||
#SET(RESOURCE_DIRS /shaders)
|
||||
|
||||
#SET(RES_SRC_FILE ${CMAKE_CURRENT_SOURCE_DIR}/plop.txt ${CMAKE_CURRENT_SOURCE_DIR}/plop2.txt)
|
||||
|
@ -1,5 +1,6 @@
|
||||
#include <iostream>
|
||||
#include "../resource/resource.h"
|
||||
#include "Version.h"
|
||||
|
||||
using namespace std;
|
||||
|
||||
@ -10,6 +11,8 @@ 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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user