Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Massive mv to use cmake as the default compilation infrastructure.
[simgrid.git] / examples / amok / bandwidth / CMakeLists.txt
diff --git a/examples/amok/bandwidth/CMakeLists.txt b/examples/amok/bandwidth/CMakeLists.txt
new file mode 100644 (file)
index 0000000..78b8485
--- /dev/null
@@ -0,0 +1,16 @@
+cmake_minimum_required(VERSION 2.6)
+
+set_source_files_properties(_bandwidth_simulator.c _bandwidth_maestro.c _bandwidth_sensor.c
+PROPERTIES GENERATED true)
+
+set(EXECUTABLE_OUTPUT_PATH "./")
+set(LIBRARY_OUTPUT_PATH "${PROJECT_DIRECTORY}/lib")
+
+add_executable(bandwidth_simulator _bandwidth_simulator.c bandwidth.c)
+add_executable(bandwidth_maestro _bandwidth_maestro.c bandwidth.c)
+add_executable(bandwidth_sensor _bandwidth_sensor.c bandwidth.c)
+
+### Add definitions for compile
+target_link_libraries(bandwidth_simulator simgrid pthread m -fprofile-arcs)
+target_link_libraries(bandwidth_maestro gras pthread m -fprofile-arcs)
+target_link_libraries(bandwidth_sensor gras pthread m -fprofile-arcs)