Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
various cleanups in the CMakeLists.txt files
[simgrid.git] / teshsuite / simdag / basic / CMakeLists.txt
index b23c3b0..2fd0417 100644 (file)
@@ -1,31 +1,17 @@
-set(EXECUTABLE_OUTPUT_PATH "${CMAKE_CURRENT_BINARY_DIR}")
-
-add_executable(basic0 basic0.c)
-add_executable(basic1 basic1.c)
-add_executable(basic2 basic2.c)
-add_executable(basic3 basic3.c)
-add_executable(basic4 basic4.c)
-add_executable(basic5 basic5.c)
-add_executable(basic6 basic6.c)
-
-### Add definitions for compile
-if(NOT WIN32)
-  target_link_libraries(basic0 simgrid m pthread )
-  target_link_libraries(basic1 simgrid m pthread )
-  target_link_libraries(basic2 simgrid m pthread )
-  target_link_libraries(basic3 simgrid m pthread )
-  target_link_libraries(basic4 simgrid m pthread )
-  target_link_libraries(basic5 simgrid m pthread )
-  target_link_libraries(basic6 simgrid m pthread )
-else()
-  target_link_libraries(basic0 simgrid)
-  target_link_libraries(basic1 simgrid)
-  target_link_libraries(basic2 simgrid)
-  target_link_libraries(basic3 simgrid)
-  target_link_libraries(basic4 simgrid)
-  target_link_libraries(basic5 simgrid)
-  target_link_libraries(basic6 simgrid)
-endif()
+add_executable       (basic0 basic0.c)
+target_link_libraries(basic0 simgrid)
+add_executable       (basic1 basic1.c)
+target_link_libraries(basic1 simgrid)
+add_executable       (basic2 basic2.c)
+target_link_libraries(basic2 simgrid)
+add_executable       (basic3 basic3.c)
+target_link_libraries(basic3 simgrid)
+add_executable       (basic4 basic4.c)
+target_link_libraries(basic4 simgrid)
+add_executable       (basic5 basic5.c)
+target_link_libraries(basic5 simgrid)
+add_executable       (basic6 basic6.c)
+target_link_libraries(basic6 simgrid)
 
 set(tesh_files
   ${tesh_files}
@@ -36,12 +22,7 @@ set(tesh_files
   ${CMAKE_CURRENT_SOURCE_DIR}/basic4.tesh
   ${CMAKE_CURRENT_SOURCE_DIR}/basic5.tesh
   ${CMAKE_CURRENT_SOURCE_DIR}/basic6.tesh
-  PARENT_SCOPE
-  )
-set(xml_files
-  ${xml_files}
-  PARENT_SCOPE
-  )
+  PARENT_SCOPE)
 set(teshsuite_src
   ${teshsuite_src}
   ${CMAKE_CURRENT_SOURCE_DIR}/basic0.c
@@ -51,13 +32,4 @@ set(teshsuite_src
   ${CMAKE_CURRENT_SOURCE_DIR}/basic4.c
   ${CMAKE_CURRENT_SOURCE_DIR}/basic5.c
   ${CMAKE_CURRENT_SOURCE_DIR}/basic6.c
-  PARENT_SCOPE
-  )
-set(bin_files
-  ${bin_files}
-  PARENT_SCOPE
-  )
-set(txt_files
-  ${txt_files}
-  PARENT_SCOPE
-  )
+  PARENT_SCOPE)