mirror of
https://github.com/ysoftdevs/cpp-examples.git
synced 2026-01-16 08:36:50 +01:00
move examples
This commit is contained in:
19
gradle-cpp-plugin/03-hello-muni-with-debug/build.gradle
Normal file
19
gradle-cpp-plugin/03-hello-muni-with-debug/build.gradle
Normal file
@@ -0,0 +1,19 @@
|
||||
apply plugin: 'cpp'
|
||||
|
||||
|
||||
// Based on http://www.gradle.org/docs/current/userguide/nativeBinaries.html
|
||||
binaries.all {
|
||||
if (toolChain in Gcc && buildType == buildTypes.debug) {
|
||||
cppCompiler.args "-g"
|
||||
}
|
||||
if (toolChain in VisualCpp && buildType == buildTypes.debug) {
|
||||
cppCompiler.args '/Zi'
|
||||
cppCompiler.define 'DEBUG'
|
||||
linker.args '/DEBUG'
|
||||
}
|
||||
}
|
||||
|
||||
executables {
|
||||
main {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
#include <iostream>
|
||||
|
||||
using namespace std;
|
||||
|
||||
int main() {
|
||||
cout << "Hello FI MUNI!" << endl;
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user