Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
model-checker : new surf configuration mc-checkpoint
[simgrid.git] / examples / msg / mc / CMakeLists.txt
1 cmake_minimum_required(VERSION 2.6)
2
3 if(HAVE_MC)
4 set(EXECUTABLE_OUTPUT_PATH "${CMAKE_CURRENT_BINARY_DIR}")
5
6 add_executable(centralized centralized_mutex.c)
7 add_executable(bugged1     bugged1.c)
8 add_executable(bugged1_stateful bugged1_stateful.c)
9 add_executable(bugged2_stateful bugged2_stateful.c)
10 add_executable(bugged2      bugged2.c)
11 add_executable(bugged3     bugged3.c)
12 add_executable(random_test random_test.c)
13 add_executable(bugged1_for_liveness bugged1_for_liveness.c)
14 add_executable(bugged1_while_liveness bugged1_while_liveness.c)
15 add_executable(bugged2_liveness bugged2_liveness.c)
16 add_executable(centralized_liveness centralized_liveness.c)
17 add_executable(centralized_liveness_deadlock centralized_liveness_deadlock.c)
18 add_executable(test_snapshot test_snapshot.c)
19 add_executable(example example.c)
20
21 target_link_libraries(centralized simgrid m )
22 target_link_libraries(bugged1     simgrid m )
23 target_link_libraries(bugged1_stateful simgrid m)
24 target_link_libraries(bugged2_stateful simgrid m)
25 target_link_libraries(bugged2     simgrid m )
26 target_link_libraries(bugged3     simgrid m )
27 target_link_libraries(random_test     simgrid m )
28 target_link_libraries(bugged1_for_liveness     simgrid m )
29 target_link_libraries(bugged1_while_liveness     simgrid m )
30 target_link_libraries(bugged2_liveness     simgrid m )
31 target_link_libraries(centralized_liveness     simgrid m )
32 target_link_libraries(centralized_liveness_deadlock     simgrid m )
33 target_link_libraries(test_snapshot     simgrid m )
34 target_link_libraries(example     simgrid m )
35 endif(HAVE_MC)
36
37 set(tesh_files
38   ${tesh_files}
39   ${CMAKE_CURRENT_SOURCE_DIR}/bugged1.tesh
40   ${CMAKE_CURRENT_SOURCE_DIR}/bugged2.tesh
41   ${CMAKE_CURRENT_SOURCE_DIR}/centralized.tesh
42   PARENT_SCOPE
43 )
44 set(xml_files
45   ${xml_files}
46   ${CMAKE_CURRENT_SOURCE_DIR}/deploy_bugged1_liveness.xml
47   ${CMAKE_CURRENT_SOURCE_DIR}/deploy_bugged1.xml
48   ${CMAKE_CURRENT_SOURCE_DIR}/deploy_bugged2_liveness.xml
49   ${CMAKE_CURRENT_SOURCE_DIR}/deploy_bugged2.xml
50   ${CMAKE_CURRENT_SOURCE_DIR}/deploy_bugged3.xml
51   ${CMAKE_CURRENT_SOURCE_DIR}/deploy_centralized_liveness.xml
52   ${CMAKE_CURRENT_SOURCE_DIR}/deploy_mutex.xml
53   ${CMAKE_CURRENT_SOURCE_DIR}/deploy_random_test.xml
54   ${CMAKE_CURRENT_SOURCE_DIR}/platform.xml
55   PARENT_SCOPE
56 )
57 set(examples_src
58   ${examples_src}
59   ${CMAKE_CURRENT_SOURCE_DIR}/bugged1.c
60   ${CMAKE_CURRENT_SOURCE_DIR}/bugged1_for_liveness.c
61   ${CMAKE_CURRENT_SOURCE_DIR}/bugged1_stateful.c
62   ${CMAKE_CURRENT_SOURCE_DIR}/bugged1_while_liveness.c
63   ${CMAKE_CURRENT_SOURCE_DIR}/bugged2.c
64   ${CMAKE_CURRENT_SOURCE_DIR}/bugged2_liveness.c
65   ${CMAKE_CURRENT_SOURCE_DIR}/bugged2_stateful.c
66   ${CMAKE_CURRENT_SOURCE_DIR}/bugged3.c
67   ${CMAKE_CURRENT_SOURCE_DIR}/centralized_liveness.c
68   ${CMAKE_CURRENT_SOURCE_DIR}/centralized_liveness_deadlock.c
69   ${CMAKE_CURRENT_SOURCE_DIR}/centralized_mutex.c
70   ${CMAKE_CURRENT_SOURCE_DIR}/random_test.c
71   ${CMAKE_CURRENT_SOURCE_DIR}/test_snapshot.c
72   ${CMAKE_CURRENT_SOURCE_DIR}/bugged1_liveness.h
73   ${CMAKE_CURRENT_SOURCE_DIR}/bugged2_liveness.h
74   ${CMAKE_CURRENT_SOURCE_DIR}/centralized_liveness.h
75   ${CMAKE_CURRENT_SOURCE_DIR}/test_snapshot.h
76   PARENT_SCOPE
77 )
78 set(bin_files
79   ${bin_files}
80   ${CMAKE_CURRENT_SOURCE_DIR}/dwarf
81   ${CMAKE_CURRENT_SOURCE_DIR}/parse_dwarf
82   ${CMAKE_CURRENT_SOURCE_DIR}/promela1_bugged1_liveness
83   ${CMAKE_CURRENT_SOURCE_DIR}/promela2_bugged1_liveness
84   ${CMAKE_CURRENT_SOURCE_DIR}/promela2_bugged2_liveness
85   ${CMAKE_CURRENT_SOURCE_DIR}/promela2_centralized_liveness
86   ${CMAKE_CURRENT_SOURCE_DIR}/promela_bugged2_liveness
87   ${CMAKE_CURRENT_SOURCE_DIR}/promela_centralized_liveness
88   PARENT_SCOPE
89 )
90 set(txt_files
91   ${txt_files}
92   PARENT_SCOPE
93 )