Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
756c14764279324dd1c19c17f16de831ac4566e2
[simgrid.git] / buildtools / CPACK / simgrid_CMakeList / teshsuite / gras / msg_handle / 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(msg_handle_simulator msg_handle.c _msg_handle_simulator.c)
11 add_executable(msg_handle_client msg_handle.c _msg_handle_client.c)
12 add_executable(msg_handle_server msg_handle.c _msg_handle_server.c)
13
14 ### Add definitions for compile
15 target_link_libraries(msg_handle_simulator simgrid m pthread -fprofile-arcs)
16 target_link_libraries(msg_handle_client gras m pthread -fprofile-arcs)
17 target_link_libraries(msg_handle_server gras m pthread -fprofile-arcs)