Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add code coverage for simgrid compilation
[simgrid.git] / buildtools / CPACK / simgrid_CMakeList / examples / gras / synchro / 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(synchro_simulator _synchro_simulator.c philosopher.c)
11 add_executable(synchro_philosopher _synchro_philosopher.c  philosopher.c)
12
13 ### Add definitions for compile
14 target_link_libraries(synchro_simulator simgrid pthread m -fprofile-arcs)
15 target_link_libraries(synchro_philosopher gras pthread m -fprofile-arcs)