added example for version in test

This commit is contained in:
Lendemor 2016-06-02 19:25:11 +02:00
parent d2917cb21a
commit 44cbdf7364
2 changed files with 6 additions and 0 deletions

View File

@ -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)

View File

@ -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;