Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix HAVE_FOOBAR flags handling
[simgrid.git] / teshsuite / xbt / CMakeLists.txt
1 foreach(x heap_bench log_large log_usage mallocator parallel_log_crashtest parmap_bench parmap_test)
2     add_executable       (${x}  ${x}/${x}.c)
3     target_link_libraries(${x}  simgrid)
4     set_target_properties(${x}  PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/${x})
5
6     set(tesh_files    ${tesh_files}    ${CMAKE_CURRENT_SOURCE_DIR}/${x}/${x}.tesh)
7     set(teshsuite_src ${teshsuite_src} ${CMAKE_CURRENT_SOURCE_DIR}/${x}/${x}.c)
8 endforeach()
9
10 foreach(x heap_bench log_large parallel_log_crashtest parmap_test) #mallocator parmap_bench
11     ADD_TESH(tesh-xbt-${x} --setenv bindir=${CMAKE_BINARY_DIR}/teshsuite/xbt/${x} --cd ${CMAKE_HOME_DIRECTORY}/teshsuite/xbt/${x} ${x}.tesh)
12 endforeach()
13
14 if(NOT enable_debug)
15   ADD_TESH(tesh-xbt-log   --setenv bindir=${CMAKE_BINARY_DIR}/teshsuite/xbt/log_usage --cd ${CMAKE_HOME_DIRECTORY}/teshsuite/xbt/log_usage log_usage_ndebug.tesh)
16 endif()
17
18 set(teshsuite_src ${teshsuite_src} ${CMAKE_CURRENT_SOURCE_DIR}/log_usage/log_usage_ndebug.tesh  PARENT_SCOPE)
19 set(tesh_files    ${tesh_files}                                                                 PARENT_SCOPE)