Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Rename CPACK to Cmake.
[simgrid.git] / buildtools / Cmake / simgrid_CMakeList / examples / gras / pmm / CMakeLists.txt
diff --git a/buildtools/Cmake/simgrid_CMakeList/examples/gras/pmm/CMakeLists.txt b/buildtools/Cmake/simgrid_CMakeList/examples/gras/pmm/CMakeLists.txt
new file mode 100644 (file)
index 0000000..6b791d2
--- /dev/null
@@ -0,0 +1,16 @@
+cmake_minimum_required(VERSION 2.6)
+
+set_source_files_properties(_pmm_simulator.c _pmm_slave.c _pmm_master.c
+PROPERTIES GENERATED true)
+
+set(EXECUTABLE_OUTPUT_PATH "./")
+set(LIBRARY_OUTPUT_PATH "${PROJECT_DIRECTORY}/lib")
+
+add_executable(pmm_simulator _pmm_simulator.c pmm.c)
+add_executable(pmm_slave _pmm_slave.c pmm.c)
+add_executable(pmm_master _pmm_master.c pmm.c)
+
+### Add definitions for compile
+target_link_libraries(pmm_simulator simgrid pthread m -fprofile-arcs)
+target_link_libraries(pmm_slave gras pthread m -fprofile-arcs)
+target_link_libraries(pmm_master gras pthread m -fprofile-arcs)