X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/9b73466ada27682d1729f394549479da83ef4a99..49637c6fbea1f5e16060fcceb844a637f50869ed:/teshsuite/msg/storage/CMakeLists.txt diff --git a/teshsuite/msg/storage/CMakeLists.txt b/teshsuite/msg/storage/CMakeLists.txt index 8f2c3fc13b..04e147d173 100644 --- a/teshsuite/msg/storage/CMakeLists.txt +++ b/teshsuite/msg/storage/CMakeLists.txt @@ -1,40 +1,13 @@ -cmake_minimum_required(VERSION 2.6) +foreach(x storage_basic concurrent_rw) + add_executable (${x} ${x}.c) + target_link_libraries(${x} simgrid) -set(EXECUTABLE_OUTPUT_PATH "${CMAKE_CURRENT_BINARY_DIR}") + set(tesh_files ${tesh_files} ${CMAKE_CURRENT_SOURCE_DIR}/${x}.tesh) + set(teshsuite_src ${teshsuite_src} ${CMAKE_CURRENT_SOURCE_DIR}/${x}.c) -add_executable(storage storage.c) + ADD_TESH_FACTORIES(tesh-msg-${x} "thread;ucontext;raw" --setenv srcdir=${CMAKE_HOME_DIRECTORY}/teshsuite/msg/storage --cd ${CMAKE_BINARY_DIR}/teshsuite/msg/storage ${CMAKE_HOME_DIRECTORY}/teshsuite/msg/storage/${x}.tesh) +endforeach() -### Add definitions for compile -if(NOT WIN32) - target_link_libraries(storage simgrid m pthread ) -else() - target_link_libraries(storage simgrid) -endif() +set(tesh_files ${tesh_files} PARENT_SCOPE) +set(teshsuite_src ${teshsuite_src} PARENT_SCOPE) -set(tesh_files - ${tesh_files} - ${CMAKE_CURRENT_SOURCE_DIR}/storage.tesh - PARENT_SCOPE - ) -set(xml_files - ${xml_files} - ${CMAKE_CURRENT_SOURCE_DIR}/platform.xml - ${CMAKE_CURRENT_SOURCE_DIR}/deployment.xml - PARENT_SCOPE - ) -set(teshsuite_src - ${teshsuite_src} - ${CMAKE_CURRENT_SOURCE_DIR}/storage.c - PARENT_SCOPE - ) -set(bin_files - ${bin_files} - PARENT_SCOPE - ) -set(txt_files - ${txt_files} - ${CMAKE_CURRENT_SOURCE_DIR}/storage_content_c.txt - ${CMAKE_CURRENT_SOURCE_DIR}/storage_content_s1.txt - ${CMAKE_CURRENT_SOURCE_DIR}/storage_content_s2.txt - PARENT_SCOPE - )