Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Give a p_netcard to simgrid::Host instead of relying on extensions for that
[simgrid.git] / teshsuite / simdag / platforms / CMakeLists.txt
1 set(EXECUTABLE_OUTPUT_PATH "${CMAKE_CURRENT_BINARY_DIR}")
2
3 add_executable(basic_parsing_test basic_parsing_test.c)
4 add_executable(is_router_test is_router_test.c)
5 add_executable(flatifier flatifier.cpp)
6 add_executable(basic_tracing basic_tracing.c)
7 add_executable(basic_link_test basic_link_test.c)
8
9 ### Add definitions for compile
10 if(NOT WIN32)
11   add_executable(evaluate_parse_time Evaluate_parse_time.c)
12   add_executable(evaluate_get_route_time Evaluate_get_route_time.c)
13   target_link_libraries(evaluate_get_route_time simgrid m)
14   target_link_libraries(evaluate_parse_time simgrid m)
15   target_link_libraries(basic_parsing_test simgrid m)
16   target_link_libraries(is_router_test simgrid m)
17   target_link_libraries(flatifier simgrid m)
18   target_link_libraries(basic_tracing simgrid m)
19   target_link_libraries(basic_link_test simgrid m)
20 else()
21   target_link_libraries(basic_parsing_test simgrid)
22   target_link_libraries(is_router_test simgrid)
23   target_link_libraries(flatifier simgrid)
24   target_link_libraries(basic_tracing simgrid)
25   target_link_libraries(basic_link_test simgrid)
26 endif()
27
28 set(tesh_files
29   ${tesh_files}
30   ${CMAKE_CURRENT_SOURCE_DIR}/basic_parsing_test_failing.tesh
31   ${CMAKE_CURRENT_SOURCE_DIR}/basic_parsing_test_sym_full.tesh
32   ${CMAKE_CURRENT_SOURCE_DIR}/basic_parsing_test.tesh
33   ${CMAKE_CURRENT_SOURCE_DIR}/basic_parsing_test_bypass.tesh
34   ${CMAKE_CURRENT_SOURCE_DIR}/basic_link_test.tesh
35   ${CMAKE_CURRENT_SOURCE_DIR}/flatifier.tesh
36   ${CMAKE_CURRENT_SOURCE_DIR}/get_full_link.tesh
37   ${CMAKE_CURRENT_SOURCE_DIR}/bogus_two_hosts_asymetric.tesh
38   ${CMAKE_CURRENT_SOURCE_DIR}/bogus_missing_gateway.tesh
39   ${CMAKE_CURRENT_SOURCE_DIR}/bogus_disk_attachment.tesh
40   PARENT_SCOPE
41   )
42 set(xml_files
43   ${xml_files}
44   ${CMAKE_CURRENT_SOURCE_DIR}/four_hosts_Dijkstra_ns3.xml
45   ${CMAKE_CURRENT_SOURCE_DIR}/four_hosts_floyd_bis.xml
46   ${CMAKE_CURRENT_SOURCE_DIR}/four_hosts_floyd_ns3.xml
47   ${CMAKE_CURRENT_SOURCE_DIR}/four_hosts_floyd.xml
48   ${CMAKE_CURRENT_SOURCE_DIR}/two_hosts_multi_hop.xml
49   ${CMAKE_CURRENT_SOURCE_DIR}/one_cluster_file.xml
50   ${CMAKE_CURRENT_SOURCE_DIR}/one_cluster_multicore.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   ${CMAKE_CURRENT_SOURCE_DIR}/bogus_disk_attachment.xml
92   PARENT_SCOPE
93   )
94 set(teshsuite_src
95   ${teshsuite_src}
96   ${CMAKE_CURRENT_SOURCE_DIR}/basic_parsing_test.c
97   ${CMAKE_CURRENT_SOURCE_DIR}/basic_tracing.c
98   ${CMAKE_CURRENT_SOURCE_DIR}/basic_link_test.c
99   ${CMAKE_CURRENT_SOURCE_DIR}/Evaluate_get_route_time.c
100   ${CMAKE_CURRENT_SOURCE_DIR}/Evaluate_parse_time.c
101   ${CMAKE_CURRENT_SOURCE_DIR}/flatifier.c
102   ${CMAKE_CURRENT_SOURCE_DIR}/is_router_test.c
103   PARENT_SCOPE
104   )
105 set(bin_files
106   ${bin_files}
107   PARENT_SCOPE
108   )
109 set(txt_files
110   ${txt_files}
111   ${CMAKE_CURRENT_SOURCE_DIR}/bob0_availability_file.trace
112   ${CMAKE_CURRENT_SOURCE_DIR}/bob0_state_file.trace
113   ${CMAKE_CURRENT_SOURCE_DIR}/bob2_availability_file.trace
114   ${CMAKE_CURRENT_SOURCE_DIR}/bob2_state_file.trace
115   ${CMAKE_CURRENT_SOURCE_DIR}/bob.fail
116   ${CMAKE_CURRENT_SOURCE_DIR}/bob.trace
117   ${CMAKE_CURRENT_SOURCE_DIR}/link1.bw
118   ${CMAKE_CURRENT_SOURCE_DIR}/link1.fail
119   ${CMAKE_CURRENT_SOURCE_DIR}/link1.lat
120   PARENT_SCOPE
121   )