]> AND Public Git Repository - simgrid.git/blobdiff - examples/sthread/CMakeLists.txt
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Make libsthtread valgrind-aware.
[simgrid.git] / examples / sthread / CMakeLists.txt
index d5473021a4a5528de043d33e9072ea447ecdfc8c..bf915fc8c79de17d0b9596e5210fe596b4769242 100644 (file)
@@ -13,10 +13,12 @@ foreach(x
     target_link_libraries(pthread-${x} PRIVATE Threads::Threads)
 
     add_dependencies(tests pthread-${x})
+    ADD_TESH_FACTORIES(pthread-${x} "^thread" --setenv libdir=${CMAKE_BINARY_DIR}/lib --cd ${CMAKE_BINARY_DIR}/examples/sthread ${CMAKE_CURRENT_SOURCE_DIR}/pthread-${x}.tesh)
   endif()
 
-#  set(tesh_files    ${tesh_files}    ${CMAKE_CURRENT_SOURCE_DIR}/pthread-${x}.tesh)
+  set(tesh_files    ${tesh_files}    ${CMAKE_CURRENT_SOURCE_DIR}/pthread-${x}.tesh)
   set(examples_src  ${examples_src}  ${CMAKE_CURRENT_SOURCE_DIR}/pthread-${x}.c)
+
 endforeach()
 
 # Regular sthread examples: test the internal interface for debugging purpose