Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge pull request #241 from barais/master
authorMartin Quinson <martin.quinson@ens-rennes.fr>
Sat, 25 Nov 2017 16:03:21 +0000 (17:03 +0100)
committerGitHub <noreply@github.com>
Sat, 25 Nov 2017 16:03:21 +0000 (17:03 +0100)
explain how to configure eclipse for developping with SimGrid in CPP

1  2 
doc/doxygen/install_yours.doc

@@@ -22,25 -22,18 +22,25 @@@ 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)
  
  set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
  
 +set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules/")
 +find_package(SimGrid REQUIRED)
 +include_directories(${SimGrid_INCLUDE_DIR})
 +
  set(SIMULATOR_SOURCES main.c other.c util.c)
  add_executable(my_simulator ${SIMULATOR_SOURCES})
 -target_link_libraries(my_simulator simgrid)
 +target_link_libraries(my_simulator ${SimGrid_LIBRARY})
  
  set(OTHER_SOURCES blah.c bar.c foo.h)
  add_executable(other_xp ${OTHER_SOURCES})
 -target_link_libraries(other_xp simgrid)
 +target_link_libraries(other_xp ${SimGrid_LIBRARY})
  @endverbatim
  
  @section install_yours_makefile Building your project with Makefile
@@@ -91,7 -84,17 +91,17 @@@ 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.
+  \image html eclipseScreenShot.png "Eclipse preference page" width=10cm
+ @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