Logo AND Algorithmique Numérique Distribuée

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