Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Massive mv to use cmake as the default compilation infrastructure.
[simgrid.git] / examples / gras / all2all / CMakeLists.txt
diff --git a/examples/gras/all2all/CMakeLists.txt b/examples/gras/all2all/CMakeLists.txt
new file mode 100644 (file)
index 0000000..da39056
--- /dev/null
@@ -0,0 +1,16 @@
+cmake_minimum_required(VERSION 2.6)
+
+set_source_files_properties(_all2all_simulator.c _all2all_sender.c _all2all_receiver.c
+PROPERTIES GENERATED true)
+
+set(EXECUTABLE_OUTPUT_PATH "./")
+set(LIBRARY_OUTPUT_PATH "${PROJECT_DIRECTORY}/lib")
+
+add_executable(all2all_simulator _all2all_simulator.c all2all.c)
+add_executable(all2all_sender _all2all_sender.c all2all.c)
+add_executable(all2all_receiver _all2all_receiver.c all2all.c)
+
+### Add definitions for compile
+target_link_libraries(all2all_simulator simgrid pthread m -fprofile-arcs)
+target_link_libraries(all2all_sender gras pthread m -fprofile-arcs)
+target_link_libraries(all2all_receiver gras pthread m -fprofile-arcs)