Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
cd4b63f33ae033bf3860d1d6be762ca8fd32504d
[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 automaton.c automatonparse_promela.c bugged1_for_liveness.c)
14 add_executable(bugged1_while_liveness automaton.c automatonparse_promela.c bugged1_while_liveness.c)
15 add_executable(bugged2_liveness automaton.c automatonparse_promela.c bugged2_liveness.c)
16 add_executable(centralized_liveness automaton.c automatonparse_promela.c centralized_liveness.c)
17 add_executable(centralized_liveness_deadlock automaton.c automatonparse_promela.c centralized_liveness_deadlock.c)
18 add_executable(test_snapshot automaton.c automatonparse_promela.c test_snapshot.c)
19
20 target_link_libraries(centralized simgrid m )
21 target_link_libraries(bugged1     simgrid m )
22 target_link_libraries(bugged1_stateful simgrid m)
23 target_link_libraries(bugged2_stateful simgrid m)
24 target_link_libraries(bugged2     simgrid m )
25 target_link_libraries(bugged3     simgrid m )
26 target_link_libraries(random_test     simgrid m )
27 target_link_libraries(bugged1_for_liveness     simgrid m )
28 target_link_libraries(bugged1_while_liveness     simgrid m )
29 target_link_libraries(bugged2_liveness     simgrid m )
30 target_link_libraries(centralized_liveness     simgrid m )
31 target_link_libraries(centralized_liveness_deadlock     simgrid m )
32 target_link_libraries(test_snapshot     simgrid m )
33 endif(HAVE_MC)
34
35 set(tesh_files
36   ${tesh_files}
37   ${CMAKE_CURRENT_SOURCE_DIR}/bugged1.tesh
38   ${CMAKE_CURRENT_SOURCE_DIR}/bugged2.tesh
39   ${CMAKE_CURRENT_SOURCE_DIR}/centralized.tesh
40   PARENT_SCOPE
41 )
42 set(xml_files
43   ${xml_files}
44   ${CMAKE_CURRENT_SOURCE_DIR}/deploy_bugged1_liveness.xml
45   ${CMAKE_CURRENT_SOURCE_DIR}/deploy_bugged1.xml
46   ${CMAKE_CURRENT_SOURCE_DIR}/deploy_bugged2_liveness.xml
47   ${CMAKE_CURRENT_SOURCE_DIR}/deploy_bugged2.xml
48   ${CMAKE_CURRENT_SOURCE_DIR}/deploy_bugged3.xml
49   ${CMAKE_CURRENT_SOURCE_DIR}/deploy_centralized_liveness.xml
50   ${CMAKE_CURRENT_SOURCE_DIR}/deploy_mutex.xml
51   ${CMAKE_CURRENT_SOURCE_DIR}/deploy_random_test.xml
52   ${CMAKE_CURRENT_SOURCE_DIR}/platform.xml
53   PARENT_SCOPE
54 )
55 set(examples_src
56   ${examples_src}
57   ${CMAKE_CURRENT_SOURCE_DIR}/automaton.c
58   ${CMAKE_CURRENT_SOURCE_DIR}/automatonparse_promela.c
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}/lex.yy.c
71   ${CMAKE_CURRENT_SOURCE_DIR}/random_test.c
72   ${CMAKE_CURRENT_SOURCE_DIR}/test_snapshot.c
73   ${CMAKE_CURRENT_SOURCE_DIR}/y.tab.c
74   ${CMAKE_CURRENT_SOURCE_DIR}/automaton.h
75   ${CMAKE_CURRENT_SOURCE_DIR}/automatonparse_promela.h
76   ${CMAKE_CURRENT_SOURCE_DIR}/bugged1_liveness.h
77   ${CMAKE_CURRENT_SOURCE_DIR}/bugged2_liveness.h
78   ${CMAKE_CURRENT_SOURCE_DIR}/centralized_liveness.h
79   ${CMAKE_CURRENT_SOURCE_DIR}/test_snapshot.h
80   ${CMAKE_CURRENT_SOURCE_DIR}/y.tab.h
81   PARENT_SCOPE
82 )
83 set(bin_files
84   ${bin_files}
85   ${CMAKE_CURRENT_SOURCE_DIR}/dwarf
86   ${CMAKE_CURRENT_SOURCE_DIR}/parse_dwarf
87   ${CMAKE_CURRENT_SOURCE_DIR}/parserPromela.lex
88   ${CMAKE_CURRENT_SOURCE_DIR}/parserPromela.yacc
89   ${CMAKE_CURRENT_SOURCE_DIR}/promela1_bugged1_liveness
90   ${CMAKE_CURRENT_SOURCE_DIR}/promela2_bugged1_liveness
91   ${CMAKE_CURRENT_SOURCE_DIR}/promela2_bugged2_liveness
92   ${CMAKE_CURRENT_SOURCE_DIR}/promela2_centralized_liveness
93   ${CMAKE_CURRENT_SOURCE_DIR}/promela_bugged2_liveness
94   ${CMAKE_CURRENT_SOURCE_DIR}/promela_centralized_liveness
95   
96   PARENT_SCOPE
97 )
98 set(txt_files
99   ${txt_files}
100   PARENT_SCOPE
101 )