Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot/simgrid/simgrid
[simgrid.git] / teshsuite / simdag / platforms / CMakeLists.txt
1 cmake_minimum_required(VERSION 2.6)
2
3 set(EXECUTABLE_OUTPUT_PATH "${CMAKE_CURRENT_BINARY_DIR}")
4
5 add_executable(basic_parsing_test basic_parsing_test.c)
6 add_executable(is_router_test is_router_test.c)
7 add_executable(flatifier flatifier.c)
8 add_executable(basic_tracing basic_tracing.c)
9 add_executable(basic_link_test basic_link_test.c)
10
11 ### Add definitions for compile
12 if(NOT WIN32)
13   add_executable(evaluate_parse_time Evaluate_parse_time.c)
14   add_executable(evaluate_get_route_time Evaluate_get_route_time.c)
15   target_link_libraries(evaluate_get_route_time simgrid m)
16   target_link_libraries(evaluate_parse_time simgrid m)
17   target_link_libraries(basic_parsing_test simgrid m)
18   target_link_libraries(is_router_test simgrid m)
19   target_link_libraries(flatifier simgrid m)
20   target_link_libraries(basic_tracing simgrid m)
21   target_link_libraries(basic_link_test simgrid m)
22 else()
23   target_link_libraries(basic_parsing_test simgrid)
24   target_link_libraries(is_router_test simgrid)
25   target_link_libraries(flatifier simgrid)
26   target_link_libraries(basic_tracing simgrid)
27   target_link_libraries(basic_link_test simgrid)
28 endif()
29
30 set(tesh_files
31   ${tesh_files}
32   ${CMAKE_CURRENT_SOURCE_DIR}/basic_parsing_test_failing.tesh
33   ${CMAKE_CURRENT_SOURCE_DIR}/basic_parsing_test_sym_full.tesh
34   ${CMAKE_CURRENT_SOURCE_DIR}/basic_parsing_test.tesh
35   ${CMAKE_CURRENT_SOURCE_DIR}/basic_parsing_test_bypass.tesh
36   ${CMAKE_CURRENT_SOURCE_DIR}/basic_link_test.tesh
37   ${CMAKE_CURRENT_SOURCE_DIR}/flatifier.tesh
38   ${CMAKE_CURRENT_SOURCE_DIR}/get_full_link.tesh
39   ${CMAKE_CURRENT_SOURCE_DIR}/bogus_two_hosts_asymetric.tesh
40   ${CMAKE_CURRENT_SOURCE_DIR}/bogus_missing_gateway.tesh
41   PARENT_SCOPE
42   )
43 set(xml_files
44   ${xml_files}
45   ${CMAKE_CURRENT_SOURCE_DIR}/four_hosts_Dijkstra_ns3.xml
46   ${CMAKE_CURRENT_SOURCE_DIR}/four_hosts_floyd_bis.xml
47   ${CMAKE_CURRENT_SOURCE_DIR}/four_hosts_floyd_ns3.xml
48   ${CMAKE_CURRENT_SOURCE_DIR}/four_hosts_floyd.xml
49   ${CMAKE_CURRENT_SOURCE_DIR}/two_hosts_multi_hop.xml
50   ${CMAKE_CURRENT_SOURCE_DIR}/one_cluster_file.xml
51   ${CMAKE_CURRENT_SOURCE_DIR}/one_cluster_foreach.xml
52   ${CMAKE_CURRENT_SOURCE_DIR}/one_cluster_fullduplex.xml
53   ${CMAKE_CURRENT_SOURCE_DIR}/one_cluster_one_host_random.xml
54   ${CMAKE_CURRENT_SOURCE_DIR}/one_cluster_one_host.xml
55   ${CMAKE_CURRENT_SOURCE_DIR}/one_cluster_properties_foreach.xml
56   ${CMAKE_CURRENT_SOURCE_DIR}/one_cluster_properties_override.xml
57   ${CMAKE_CURRENT_SOURCE_DIR}/one_cluster_router_id.xml
58   ${CMAKE_CURRENT_SOURCE_DIR}/one_cluster.xml
59   ${CMAKE_CURRENT_SOURCE_DIR}/one_host_availability.xml
60   ${CMAKE_CURRENT_SOURCE_DIR}/one_host_properties.xml
61   ${CMAKE_CURRENT_SOURCE_DIR}/one_host_state_file.xml
62   ${CMAKE_CURRENT_SOURCE_DIR}/one_host_state_off.xml
63   ${CMAKE_CURRENT_SOURCE_DIR}/one_host_state_on.xml
64   ${CMAKE_CURRENT_SOURCE_DIR}/one_host_trace_file.xml
65   ${CMAKE_CURRENT_SOURCE_DIR}/one_host_trace_inside.xml
66   ${CMAKE_CURRENT_SOURCE_DIR}/one_host.xml
67   ${CMAKE_CURRENT_SOURCE_DIR}/one_link_availability.xml
68   ${CMAKE_CURRENT_SOURCE_DIR}/one_link_fatpipe.xml
69   ${CMAKE_CURRENT_SOURCE_DIR}/one_link_shared.xml
70   ${CMAKE_CURRENT_SOURCE_DIR}/one_link_state_file.xml
71   ${CMAKE_CURRENT_SOURCE_DIR}/platform_include.xml
72   ${CMAKE_CURRENT_SOURCE_DIR}/properties.xml
73   ${CMAKE_CURRENT_SOURCE_DIR}/random.xml
74   ${CMAKE_CURRENT_SOURCE_DIR}/route_override.xml
75   ${CMAKE_CURRENT_SOURCE_DIR}/test_of_is_router.xml
76   ${CMAKE_CURRENT_SOURCE_DIR}/three_hosts_non_symmetric_route.xml
77   ${CMAKE_CURRENT_SOURCE_DIR}/two_clusters_one_name.xml
78   ${CMAKE_CURRENT_SOURCE_DIR}/two_clusters_router_id.xml
79   ${CMAKE_CURRENT_SOURCE_DIR}/two_clusters_symmetric.xml
80   ${CMAKE_CURRENT_SOURCE_DIR}/two_clusters.xml
81   ${CMAKE_CURRENT_SOURCE_DIR}/bogus_missing_src_gateway.xml
82   ${CMAKE_CURRENT_SOURCE_DIR}/bogus_missing_dst_gateway.xml
83   ${CMAKE_CURRENT_SOURCE_DIR}/bogus_two_hosts_asymetric.xml
84   ${CMAKE_CURRENT_SOURCE_DIR}/bogus_two_hosts_asymetric-2.xml
85   ${CMAKE_CURRENT_SOURCE_DIR}/two_hosts_one_link_fullduplex.xml
86   ${CMAKE_CURRENT_SOURCE_DIR}/two_hosts_one_link_symmetrical.xml
87   ${CMAKE_CURRENT_SOURCE_DIR}/two_hosts_one_link.xml
88   ${CMAKE_CURRENT_SOURCE_DIR}/clusterA.xml
89   ${CMAKE_CURRENT_SOURCE_DIR}/clusterB.xml
90   ${CMAKE_CURRENT_SOURCE_DIR}/Dijkstra.xml
91   PARENT_SCOPE
92   )
93 set(teshsuite_src
94   ${teshsuite_src}
95   ${CMAKE_CURRENT_SOURCE_DIR}/basic_parsing_test.c
96   ${CMAKE_CURRENT_SOURCE_DIR}/basic_tracing.c
97   ${CMAKE_CURRENT_SOURCE_DIR}/basic_link_test.c
98   ${CMAKE_CURRENT_SOURCE_DIR}/Evaluate_get_route_time.c
99   ${CMAKE_CURRENT_SOURCE_DIR}/Evaluate_parse_time.c
100   ${CMAKE_CURRENT_SOURCE_DIR}/flatifier.c
101   ${CMAKE_CURRENT_SOURCE_DIR}/is_router_test.c
102   PARENT_SCOPE
103   )
104 set(bin_files
105   ${bin_files}
106   PARENT_SCOPE
107   )
108 set(txt_files
109   ${txt_files}
110   ${CMAKE_CURRENT_SOURCE_DIR}/bob0_availability_file.trace
111   ${CMAKE_CURRENT_SOURCE_DIR}/bob0_state_file.trace
112   ${CMAKE_CURRENT_SOURCE_DIR}/bob2_availability_file.trace
113   ${CMAKE_CURRENT_SOURCE_DIR}/bob2_state_file.trace
114   ${CMAKE_CURRENT_SOURCE_DIR}/bob.fail
115   ${CMAKE_CURRENT_SOURCE_DIR}/bob.trace
116   ${CMAKE_CURRENT_SOURCE_DIR}/link1.bw
117   ${CMAKE_CURRENT_SOURCE_DIR}/link1.fail
118   ${CMAKE_CURRENT_SOURCE_DIR}/link1.lat
119   PARENT_SCOPE
120   )