Add Eclipse instructions
This commit is contained in:
30
README.md
30
README.md
@@ -99,6 +99,35 @@ Run Code::Blocks, and open the project in `basic-c-sdl-project/build/codeblocks`
|
||||
Finally, build and run the project.
|
||||
|
||||
|
||||
#### Open with Eclipse C/C++
|
||||
|
||||
[Eclipse][] is a well-known IDE, widely used in Java projects development, but
|
||||
it also supports other programming languages, like in this case C/C++.
|
||||
It handle CMake projects by wrapping them into native Eclipse projects.
|
||||
|
||||
*Download Eclipse C/C++:*
|
||||
|
||||
Online installer: https://www.eclipse.org/downloads<br>
|
||||
Offline package: https://www.eclipse.org/downloads/packages
|
||||
|
||||
*Prepare the Eclipse project:*
|
||||
|
||||
```sh
|
||||
# Create a folder for the Eclipse project outside this project
|
||||
cd basic-c-sdl-project
|
||||
mkdir ../eclipse-basic-c-sdl-project
|
||||
cd ../eclipse-basic-c-sdl-project
|
||||
|
||||
# Generate an Eclipse project
|
||||
cmake ../basic-c-sdl-project -G "Eclipse CDT4 - Unix Makefiles"
|
||||
```
|
||||
*Open the project:*<br>
|
||||
Run Eclipse, and open the project in `eclipse-basic-c-sdl-project`.<br>
|
||||
Create a new run configuration: Go to `Run` > `Run configurations` >
|
||||
`C\C++ Application` and specify the C/C++ Application using `Search Project...`<br>
|
||||
Finally, build and run the project.
|
||||
|
||||
|
||||
## License
|
||||
|
||||
This project is distributed under the terms of the MIT license
|
||||
@@ -114,3 +143,4 @@ This project is distributed under the terms of the MIT license
|
||||
[SDL2_gfx]: http://www.ferzkopp.net/wordpress/2016/01/02/sdl_gfx-sdl2_gfx
|
||||
[Qt Creator]: https://doc.qt.io/qtcreator
|
||||
[Code::Blocks]: http://www.codeblocks.org
|
||||
[Eclipse]: https://www.eclipse.org
|
||||
|
||||
Reference in New Issue
Block a user