Initiate CMake

This commit is contained in:
Sebastian Messmer 2014-11-04 02:32:06 +01:00
parent 067b859d47
commit e8b1b51cdb
2 changed files with 18 additions and 0 deletions

2
.gitignore vendored
View File

@ -1 +1,3 @@
build.debug
build.release

16
src/main.cpp Normal file
View File

@ -0,0 +1,16 @@
// A simple program that computes the square root of a number
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include "buildconfig/BuildConfig.h"
int main ()
{
printf("Version: %d", buildconfig::VERSION::MAJOR);
#ifdef NDEBUG
printf("Release build");
#else
printf("Debug build");
#endif
return 0;
}