X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/77bbf3027c4240a2e833209a3a3f186589da8577..dfc3b7c81f7e4fec5c8da96745042766dc0da27f:/doc/doxygen/install_yours.doc diff --git a/doc/doxygen/install_yours.doc b/doc/doxygen/install_yours.doc index da754cda74..1046f524c2 100644 --- a/doc/doxygen/install_yours.doc +++ b/doc/doxygen/install_yours.doc @@ -22,9 +22,6 @@ documentation. Here is a `CMakeLists.txt` that you can use as a starting point for your project. It builds two simulators from a given set of source files. -You first need to copy the `FindSimGrid.cmake` (at the root of the -SimGrid tree) into the `cmake/Modules` directory of your project. - @verbatim project(MyFirstScheduler) @@ -43,6 +40,15 @@ add_executable(other_xp ${OTHER_SOURCES}) target_link_libraries(other_xp ${SimGrid_LIBRARY}) @endverbatim +For that, you need FindSimGrid.cmake, +that is located at the root of the SimGrid tree. You can either copy +this file into the `cmake/Modules` directory of your project, or use +the version installed on the disk. Both solutions present advantages +and drawback: if you copy the file, you have to keep it in sync +manually but your project will produce relevant error messages when +trying to compile on a machine where SimGrid is not installed. Please +also refer to the file header for more information. + @section install_yours_makefile Building your project with Makefile Here is a Makefile that will work if your project is composed of three @@ -91,7 +97,15 @@ clean: .PHONY: clean @endverbatim -@section install_yours_javaexamples Building the Java examples in Eclipse +@section install_yours_cppeclipsedevenv Develop in C++ with SimGrid with Eclipse + +If you wish to develop your plugin or modify SimGrid using Eclipse. You have to run cmake and import it as a Makefile project. + +Next you have to activate C++11 in your build settings, add -std=c++11 in the CDT GCC Built-in compiler settings. + +![Eclipse preference page.](eclipseScreenShot.png) + +@section install_yours_javaexample Building the Java examples in Eclipse If you want to build our Java examples in Eclipse, get the whole source code and open the archive on your disk. In Eclipse, select