Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
continue to emptty teshsuite/simdag/platforms/CMakeLists.txt
[simgrid.git] / teshsuite / simdag / platforms / CMakeLists.txt
index 4e960d0..d18f0e9 100644 (file)
@@ -1,19 +1,8 @@
-cmake_minimum_required(VERSION 2.6)
+foreach(x evaluate_parse_time evaluate_get_route_time)
+  add_executable       (${x} ${x}.c)
+  target_link_libraries(${x} simgrid)
 
-set(EXECUTABLE_OUTPUT_PATH "${CMAKE_CURRENT_BINARY_DIR}")
-
-add_executable(basic_parsing_test basic_parsing_test.c)
-add_executable(is_router_test is_router_test.c)
-add_executable(flatifier flatifier.c)
-
-### Add definitions for compile
-if(NOT WIN32)
-target_link_libraries(basic_parsing_test simgrid m pthread )
-target_link_libraries(is_router_test simgrid m pthread )
-target_link_libraries(flatifier simgrid m pthread )
-else(NOT WIN32)
-target_link_libraries(basic_parsing_test simgrid)
-target_link_libraries(is_router_test simgrid)
-target_link_libraries(flatifier simgrid)
-endif(NOT WIN32)
+  set(teshsuite_src ${teshsuite_src} ${CMAKE_CURRENT_SOURCE_DIR}/${x}.c)
+endforeach()
 
+set(teshsuite_src ${teshsuite_src}                                                                         PARENT_SCOPE)
\ No newline at end of file