Initiate CMake
This commit is contained in:
parent
067b859d47
commit
e8b1b51cdb
2
.gitignore
vendored
2
.gitignore
vendored
@ -1 +1,3 @@
|
||||
build.debug
|
||||
build.release
|
||||
|
||||
|
16
src/main.cpp
Normal file
16
src/main.cpp
Normal 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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user