Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add code coverage for simgrid compilation
[simgrid.git] / buildtools / CPACK / simgrid_CMakeList / examples / msg / sendrecv / CMakeLists.txt
diff --git a/buildtools/CPACK/simgrid_CMakeList/examples/msg/sendrecv/CMakeLists.txt b/buildtools/CPACK/simgrid_CMakeList/examples/msg/sendrecv/CMakeLists.txt
new file mode 100644 (file)
index 0000000..ea4c385
--- /dev/null
@@ -0,0 +1,13 @@
+cmake_minimum_required(VERSION 2.6)
+
+set(EXECUTABLE_OUTPUT_PATH "./")
+set(LIBRARY_OUTPUT_PATH "${PROJECT_DIRECTORY}/lib")
+set(INCLUDES "-I${PROJECT_DIRECTORY}/include -I${PROJECT_DIRECTORY}/src/include -I${PROJECT_DIRECTORY}/src -I/usr/include")
+
+set(CMAKE_CXX_FLAGS -fprofile-arcs -ftest-coverage)
+add_definitions (${INCLUDES} -fprofile-arcs -ftest-coverage)
+
+add_executable(sendrecv sendrecv.c)
+
+### Add definitions for compile
+target_link_libraries(sendrecv simgrid m -fprofile-arcs)