From 75c7b5f7fd82c5894e487b16f4577c64cccf42df Mon Sep 17 00:00:00 2001 From: Yuchen Deng Date: Thu, 17 Nov 2011 12:26:17 +0800 Subject: [PATCH] Add plain C/C++ project for CMake Change-Id: Id9f0982092be182b976a566d0ae5eddd11307db1 Reviewed-by: hjk --- .../wizards/cmakeplainc/CMakeLists.txt | 4 ++ .../templates/wizards/cmakeplainc/console.png | Bin 0 -> 567 bytes .../templates/wizards/cmakeplainc/main.c | 7 +++ .../templates/wizards/cmakeplainc/wizard.xml | 49 ++++++++++++++++++ .../wizards/cmakeplaincpp/CMakeLists.txt | 4 ++ .../wizards/cmakeplaincpp/console.png | Bin 0 -> 567 bytes .../templates/wizards/cmakeplaincpp/main.cpp | 9 ++++ .../wizards/cmakeplaincpp/wizard.xml | 49 ++++++++++++++++++ 8 files changed, 122 insertions(+) create mode 100644 share/qtcreator/templates/wizards/cmakeplainc/CMakeLists.txt create mode 100644 share/qtcreator/templates/wizards/cmakeplainc/console.png create mode 100644 share/qtcreator/templates/wizards/cmakeplainc/main.c create mode 100644 share/qtcreator/templates/wizards/cmakeplainc/wizard.xml create mode 100644 share/qtcreator/templates/wizards/cmakeplaincpp/CMakeLists.txt create mode 100644 share/qtcreator/templates/wizards/cmakeplaincpp/console.png create mode 100644 share/qtcreator/templates/wizards/cmakeplaincpp/main.cpp create mode 100644 share/qtcreator/templates/wizards/cmakeplaincpp/wizard.xml diff --git a/share/qtcreator/templates/wizards/cmakeplainc/CMakeLists.txt b/share/qtcreator/templates/wizards/cmakeplainc/CMakeLists.txt new file mode 100644 index 00000000000..aad92e30c3c --- /dev/null +++ b/share/qtcreator/templates/wizards/cmakeplainc/CMakeLists.txt @@ -0,0 +1,4 @@ +project(%ProjectName%) +cmake_minimum_required(VERSION 2.8) +aux_source_directory(. SRC_LIST) +add_executable(${PROJECT_NAME} ${SRC_LIST}) diff --git a/share/qtcreator/templates/wizards/cmakeplainc/console.png b/share/qtcreator/templates/wizards/cmakeplainc/console.png new file mode 100644 index 0000000000000000000000000000000000000000..7569a988f4a09ad0a72d7250b47db99c88471a79 GIT binary patch literal 567 zcmeAS@N?(olHy`uVBq!ia0y~yU{C;I4mJh`hT^KKFANL}Y)RhkE)4%caKYZ?lNlHo zI14-?iy0WWg+Z8+Vb&Z81_lQ95>H=O_G?VcTn3Cs1+>;PFfhoLxJHyX=jZ08=9Mrw z7o{eaq^2m8XO?6rgk+>DxO@5ryiZZhV_;yM?djqeQgQ3;^u1Y3jv}q+*ErwUeRRVD z?xyHp9AO8uvbp7z^(Xjk*mzp|iDFR1%ml%Xsr?Bn7p-}eWVre0j%7lVcD(BP?R?-e z@0q7HcXk@jN&KBB?t04Mpq5O-{}_{Be{1EIJr3(W%EZv{ymH0$*E1#j)r5K44_}sL zXgHWqutifhbL~OP{rnH@Sp&QjyA~xeY`d-dtiM?23scak8pb74KG@113})E>T={|H zDgkjupUW)095u%lW?PkZbThOi9=K*Ur*AT+%Oc4QI@-n^N47tZIikD$@v8C%41sl; zi$$g^$d+2QQlKr-jv>g4#pb}T%HFwqnQH~L-irzZeq&%S-v8YBy2+28!*yF7T@reh zPG(9aldF71(QNkFKwd#djzVh(5m)uIx~C5n?L6`&w<_fMw!1D2;{6Id&MTI6 znflvKI@;OspvJ<1!Vad*&C Q3=9kmp00i_>zopr0NOF+bpQYW literal 0 HcmV?d00001 diff --git a/share/qtcreator/templates/wizards/cmakeplainc/main.c b/share/qtcreator/templates/wizards/cmakeplainc/main.c new file mode 100644 index 00000000000..8f1edd610c6 --- /dev/null +++ b/share/qtcreator/templates/wizards/cmakeplainc/main.c @@ -0,0 +1,7 @@ +#include + +int main(void) +{ + printf("Hello World!\n"); + return 0; +} diff --git a/share/qtcreator/templates/wizards/cmakeplainc/wizard.xml b/share/qtcreator/templates/wizards/cmakeplainc/wizard.xml new file mode 100644 index 00000000000..374507dfe47 --- /dev/null +++ b/share/qtcreator/templates/wizards/cmakeplainc/wizard.xml @@ -0,0 +1,49 @@ + + + + console.png + Creates a plain C project using CMake, not using the Qt library. + CMake Plain C Project; + Other Project + + + + + diff --git a/share/qtcreator/templates/wizards/cmakeplaincpp/CMakeLists.txt b/share/qtcreator/templates/wizards/cmakeplaincpp/CMakeLists.txt new file mode 100644 index 00000000000..aad92e30c3c --- /dev/null +++ b/share/qtcreator/templates/wizards/cmakeplaincpp/CMakeLists.txt @@ -0,0 +1,4 @@ +project(%ProjectName%) +cmake_minimum_required(VERSION 2.8) +aux_source_directory(. SRC_LIST) +add_executable(${PROJECT_NAME} ${SRC_LIST}) diff --git a/share/qtcreator/templates/wizards/cmakeplaincpp/console.png b/share/qtcreator/templates/wizards/cmakeplaincpp/console.png new file mode 100644 index 0000000000000000000000000000000000000000..7569a988f4a09ad0a72d7250b47db99c88471a79 GIT binary patch literal 567 zcmeAS@N?(olHy`uVBq!ia0y~yU{C;I4mJh`hT^KKFANL}Y)RhkE)4%caKYZ?lNlHo zI14-?iy0WWg+Z8+Vb&Z81_lQ95>H=O_G?VcTn3Cs1+>;PFfhoLxJHyX=jZ08=9Mrw z7o{eaq^2m8XO?6rgk+>DxO@5ryiZZhV_;yM?djqeQgQ3;^u1Y3jv}q+*ErwUeRRVD z?xyHp9AO8uvbp7z^(Xjk*mzp|iDFR1%ml%Xsr?Bn7p-}eWVre0j%7lVcD(BP?R?-e z@0q7HcXk@jN&KBB?t04Mpq5O-{}_{Be{1EIJr3(W%EZv{ymH0$*E1#j)r5K44_}sL zXgHWqutifhbL~OP{rnH@Sp&QjyA~xeY`d-dtiM?23scak8pb74KG@113})E>T={|H zDgkjupUW)095u%lW?PkZbThOi9=K*Ur*AT+%Oc4QI@-n^N47tZIikD$@v8C%41sl; zi$$g^$d+2QQlKr-jv>g4#pb}T%HFwqnQH~L-irzZeq&%S-v8YBy2+28!*yF7T@reh zPG(9aldF71(QNkFKwd#djzVh(5m)uIx~C5n?L6`&w<_fMw!1D2;{6Id&MTI6 znflvKI@;OspvJ<1!Vad*&C Q3=9kmp00i_>zopr0NOF+bpQYW literal 0 HcmV?d00001 diff --git a/share/qtcreator/templates/wizards/cmakeplaincpp/main.cpp b/share/qtcreator/templates/wizards/cmakeplaincpp/main.cpp new file mode 100644 index 00000000000..3129fb9dd95 --- /dev/null +++ b/share/qtcreator/templates/wizards/cmakeplaincpp/main.cpp @@ -0,0 +1,9 @@ +#include + +using namespace std; + +int main() +{ + cout << "Hello World!" << endl; + return 0; +} diff --git a/share/qtcreator/templates/wizards/cmakeplaincpp/wizard.xml b/share/qtcreator/templates/wizards/cmakeplaincpp/wizard.xml new file mode 100644 index 00000000000..7247004a5ee --- /dev/null +++ b/share/qtcreator/templates/wizards/cmakeplaincpp/wizard.xml @@ -0,0 +1,49 @@ + + + + console.png + Creates a plain C++ project using CMake, not using the Qt library. + CMake Plain C++ Project; + Other Project + + + + +