Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
c97451b00332b7ddd11df8274dd90d61dc779efc
[simgrid.git] / examples / deprecated / msg / mc / CMakeLists.txt
1 foreach (x bugged1 bugged2 bugged3 centralized_mutex electric_fence bugged1_liveness bugged2_liveness)
2   if(SIMGRID_HAVE_MC)
3     add_executable       (${x} EXCLUDE_FROM_ALL ${x}.c)
4     target_link_libraries(${x} simgrid)
5     add_dependencies(tests ${x})
6   endif()
7   set(examples_src  ${examples_src} ${CMAKE_CURRENT_SOURCE_DIR}/${x}.c)
8   set(xml_files     ${xml_files}    ${CMAKE_CURRENT_SOURCE_DIR}/deploy_${x}.xml)
9 endforeach()
10
11 if(SIMGRID_HAVE_MC)
12   if(HAVE_C_STACK_CLEANER)
13     add_executable       (bugged1_liveness_cleaner_on  EXCLUDE_FROM_ALL bugged1_liveness.c)
14     target_link_libraries(bugged1_liveness_cleaner_on  simgrid)
15     set_target_properties(bugged1_liveness_cleaner_on  PROPERTIES COMPILE_FLAGS "-DGARBAGE_STACK -fstack-cleaner")
16     add_dependencies(tests bugged1_liveness_cleaner_on)
17     
18     add_executable       (bugged1_liveness_cleaner_off EXCLUDE_FROM_ALL bugged1_liveness.c)
19     target_link_libraries(bugged1_liveness_cleaner_off simgrid)
20     set_target_properties(bugged1_liveness_cleaner_off PROPERTIES COMPILE_FLAGS "-DGARBAGE_STACK -fno-stack-cleaner")
21     add_dependencies(tests bugged1_liveness_cleaner_off)
22   endif()
23 endif()
24
25 set(tesh_files   ${tesh_files}    ${CMAKE_CURRENT_SOURCE_DIR}/bugged1.tesh
26                                   ${CMAKE_CURRENT_SOURCE_DIR}/bugged2.tesh
27                                   ${CMAKE_CURRENT_SOURCE_DIR}/bugged1_liveness.tesh
28                                   ${CMAKE_CURRENT_SOURCE_DIR}/bugged1_liveness_visited.tesh
29                                   ${CMAKE_CURRENT_SOURCE_DIR}/bugged1_liveness_sparse.tesh
30                                   ${CMAKE_CURRENT_SOURCE_DIR}/bugged1_liveness_visited_sparse.tesh
31                                   ${CMAKE_CURRENT_SOURCE_DIR}/centralized_mutex.tesh                PARENT_SCOPE)
32 set(xml_files    ${xml_files}     ${CMAKE_CURRENT_SOURCE_DIR}/deploy_bugged1_liveness_visited.xml
33                                   ${CMAKE_CURRENT_SOURCE_DIR}/platform.xml                          PARENT_SCOPE)
34 set(examples_src ${examples_src}                                                                    PARENT_SCOPE)
35 set(bin_files    ${bin_files}     ${CMAKE_CURRENT_SOURCE_DIR}/promela_bugged1_liveness
36                                   ${CMAKE_CURRENT_SOURCE_DIR}/promela_bugged2_liveness
37                                   ${CMAKE_CURRENT_SOURCE_DIR}/bugged1_liveness_stack_cleaner        PARENT_SCOPE)