Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
VM.setBound(int load) is now VM.setBound(double bound) to meet the MSG semantics...
[simgrid.git] / teshsuite / smpi / CMakeLists.txt
index 4e6f7a6..6b946c1 100644 (file)
@@ -7,8 +7,9 @@ if(enable_smpi)
 
   include_directories(BEFORE "${CMAKE_HOME_DIRECTORY}/include/smpi")
   foreach(x type-hvector type-struct type-vector)
-    add_executable       (${x}/${x}  ${x}/${x}.c)
-    target_link_libraries(${x}/${x}  simgrid)
+    add_executable       (${x}  ${x}/${x}.c)
+    target_link_libraries(${x}  simgrid)
+    set_target_properties(${x}  PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/${x})
 
     set(tesh_files    ${tesh_files}    ${CMAKE_CURRENT_SOURCE_DIR}/${x}/${x}.tesh)
     set(teshsuite_src ${teshsuite_src} ${CMAKE_CURRENT_SOURCE_DIR}/${x}/${x}.c)