Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add code coverage for simgrid compilation
[simgrid.git] / buildtools / CPACK / simgrid_CMakeList / examples / gras / spawn / CMakeLists.txt
1 cmake_minimum_required(VERSION 2.6)
2
3 set(EXECUTABLE_OUTPUT_PATH "./")
4 set(LIBRARY_OUTPUT_PATH "${PROJECT_DIRECTORY}/lib")
5 set(INCLUDES "-I${PROJECT_DIRECTORY}/include -I${PROJECT_DIRECTORY}/src/include -I${PROJECT_DIRECTORY}/src -I/usr/include")
6
7 set(CMAKE_CXX_FLAGS -fprofile-arcs -ftest-coverage)
8 add_definitions (${INCLUDES} -fprofile-arcs -ftest-coverage)
9
10 add_executable(spawn_simulator _spawn_simulator.c spawn_father.c spawn_child.c spawn_common.c)
11 add_executable(spawn_child _spawn_child.c spawn_child.c spawn_common.c)
12 add_executable(spawn_father _spawn_father.c  spawn_father.c spawn_child.c spawn_common.c)
13
14 ### Add definitions for compile
15 target_link_libraries(spawn_simulator simgrid pthread m -fprofile-arcs)
16 target_link_libraries(spawn_child gras pthread m -fprofile-arcs)
17 target_link_libraries(spawn_father gras pthread m -fprofile-arcs)
18