summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaul Munoz <raul.munoz@toradex.com>2017-05-16 18:02:57 -0300
committerStefan Agner <stefan.agner@toradex.com>2017-05-19 10:06:58 -0700
commit147859dbe94af976190c40255e3705dc3225faad (patch)
treef8702fb466f726b89433bbcf50d715bcd26386be
parente5ee7247b636ae13cbe231306070108d1672b4bb (diff)
examples: add eclipse generator
Adding Eclipse CDT4 Generator in orther to have the .cproject .project created with cmake command. It help to include the files inside eclipse. Signed-off-by: Raul Munoz <raul.munoz@toradex.com> [add generated Eclipse file to gitignore] Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
-rw-r--r--.gitignore2
-rwxr-xr-xexamples/imx7_colibri_m4/demo_apps/hello_world/armgcc/clean.sh2
-rwxr-xr-xexamples/imx7_colibri_m4/demo_apps/hello_world/armgcc/debug/build_debug.sh2
3 files changed, 4 insertions, 2 deletions
diff --git a/.gitignore b/.gitignore
index 94ac416..2cb227b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -6,3 +6,5 @@ cmake_install.cmake
*.elf
*.hex
*.map
+*.cproject
+*.project
diff --git a/examples/imx7_colibri_m4/demo_apps/hello_world/armgcc/clean.sh b/examples/imx7_colibri_m4/demo_apps/hello_world/armgcc/clean.sh
index 7120907..4b188ab 100755
--- a/examples/imx7_colibri_m4/demo_apps/hello_world/armgcc/clean.sh
+++ b/examples/imx7_colibri_m4/demo_apps/hello_world/armgcc/clean.sh
@@ -1,6 +1,6 @@
#!/bin/sh
cd debug
-rm -rf Makefile cmake_install.cmake CMakeCache.txt CMakeFiles *.elf *.bin *.map *.hex
+rm -rf Makefile cmake_install.cmake CMakeCache.txt CMakeFiles *.elf *.bin *.map *.hex .cproject .project
cd ..
cd release
rm -rf Makefile cmake_install.cmake CMakeCache.txt CMakeFiles *.elf *.bin *.map *.hex
diff --git a/examples/imx7_colibri_m4/demo_apps/hello_world/armgcc/debug/build_debug.sh b/examples/imx7_colibri_m4/demo_apps/hello_world/armgcc/debug/build_debug.sh
index 5526f5d..3c169d2 100755
--- a/examples/imx7_colibri_m4/demo_apps/hello_world/armgcc/debug/build_debug.sh
+++ b/examples/imx7_colibri_m4/demo_apps/hello_world/armgcc/debug/build_debug.sh
@@ -1,3 +1,3 @@
#!/bin/sh
-cmake -DCMAKE_TOOLCHAIN_FILE="../../../../../tools/cmake_toolchain_files/armgcc.cmake" -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Debug ..
+cmake -DCMAKE_TOOLCHAIN_FILE="../../../../../tools/cmake_toolchain_files/armgcc.cmake" -G "Eclipse CDT4 - Unix Makefiles" -DCMAKE_BUILD_TYPE=Debug ..
make -j4