Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add msg host on/off test
[simgrid.git] / teshsuite / msg / CMakeLists.txt
1 cmake_minimum_required(VERSION 2.6)
2
3 set(EXECUTABLE_OUTPUT_PATH "${CMAKE_CURRENT_BINARY_DIR}")
4
5 add_executable(get_sender ${CMAKE_HOME_DIRECTORY}/teshsuite/msg/get_sender.c)
6 add_executable(pid ${CMAKE_HOME_DIRECTORY}/teshsuite/msg/pid.c)
7 add_executable(host_on_off ${CMAKE_HOME_DIRECTORY}/teshsuite/msg/host_on_off.c)
8
9
10 ### Add definitions for compile
11 target_link_libraries(get_sender simgrid)
12 target_link_libraries(host_on_off simgrid)
13 if(NOT WIN32)
14   target_link_libraries(pid simgrid m pthread)
15 else()
16   target_link_libraries(pid simgrid)
17 endif()
18
19 set(tesh_files
20   ${tesh_files}
21   ${CMAKE_CURRENT_SOURCE_DIR}/get_sender.tesh
22   ${CMAKE_CURRENT_SOURCE_DIR}/pid.tesh
23   ${CMAKE_CURRENT_SOURCE_DIR}/host_on_off.tesh
24   PARENT_SCOPE
25   )
26 set(xml_files
27   ${xml_files}
28   ${CMAKE_CURRENT_SOURCE_DIR}/get_sender_d.xml
29   ${CMAKE_CURRENT_SOURCE_DIR}/get_sender_p.xml
30   ${CMAKE_CURRENT_SOURCE_DIR}/pid_d.xml
31   ${CMAKE_CURRENT_SOURCE_DIR}/pid_p.xml
32   ${CMAKE_CURRENT_SOURCE_DIR}/host_on_off.xml
33   PARENT_SCOPE
34   )
35 set(teshsuite_src
36   ${teshsuite_src}
37   ${CMAKE_CURRENT_SOURCE_DIR}/get_sender.c
38   ${CMAKE_CURRENT_SOURCE_DIR}/pid.c
39   ${CMAKE_CURRENT_SOURCE_DIR}/host_on_off.c
40   PARENT_SCOPE
41   )
42 set(bin_files
43   ${bin_files}
44   PARENT_SCOPE
45   )
46 set(txt_files
47   ${txt_files}
48   PARENT_SCOPE
49   )