1 This is a very simple example to explain how to compile with simgrid.
3 1) How to compile an example: (HelloWorld)
5 - Run windows shell "cmd".
6 - Open HelloWorld Directory ('cd' command line).
7 - Create a build directory and change directory. (optional)
8 - Type 'cmake -G"MinGW Makefiles" <path_to_HelloWorld_project>'
10 - You should obtain a runnable example ("HelloWorld.exe").
12 2) Content of this directory
15 The example source file.
17 It allows to configure the project.
21 3) How to add and compile a new example
23 - Put your source file into the helloWord directory.
24 - Edit CMakeLists.txt :
25 * In the Targets section add those two lines:
26 add_executable(TARGET_NAME SOURCES)
27 target_link_libraries(TARGET_NAME simgrid)
28 * It creates a target called 'TARGET_NAME.exe' with the sources 'SOURCES'.
29 - To initialize your project, you'll need to run 'cmake -G"Unix Makefiles" <path_to_HelloWorld_project>.'
30 - To build you project, run "cmake ."
32 - You should obtain "TARGET_NAME.exe".