Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
0fe984b1defc279ce9e13c72c6eec7c5c021203a
[simgrid.git] / teshsuite / kernel / CMakeLists.txt
1 foreach(x context-stacksize)
2   add_executable       (${x}  EXCLUDE_FROM_ALL ${x}/${x}.cpp)
3   target_link_libraries(${x}  simgrid)
4   set_target_properties(${x}  PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/${x})
5   add_dependencies(tests ${x})
6
7   set(teshsuite_src ${teshsuite_src} ${CMAKE_CURRENT_SOURCE_DIR}/${x}/${x}.cpp)
8 endforeach()
9
10 ## Add the tests.
11 ## Some need to be run with all factories, some don't need tesh to run
12
13 # This test should not be executed with thread contexts, as they ignore stack size changes
14 ADD_TESH_FACTORIES(tesh-kern-context-stacksize "raw;boost;ucontext" --setenv bindir=${CMAKE_BINARY_DIR}/teshsuite/kernel/context-stacksize --setenv srcdir=${CMAKE_HOME_DIRECTORY}/teshsuite/kernel/context-stacksize --setenv platfdir=${CMAKE_HOME_DIRECTORY}/examples/platforms --cd ${CMAKE_BINARY_DIR}/teshsuite/kernel/context-stacksize ${CMAKE_HOME_DIRECTORY}/teshsuite/kernel/context-stacksize/context-stacksize.tesh)
15 set(tesh_files    ${tesh_files} ${CMAKE_CURRENT_SOURCE_DIR}/context-stacksize/context-stacksize.tesh)
16
17
18
19 # Pack the files in the archive
20 set(teshsuite_src ${teshsuite_src}  PARENT_SCOPE)
21 set(tesh_files    ${tesh_files}     PARENT_SCOPE)
22 set(xml_files     ${xml_files}      PARENT_SCOPE)