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})
7 set(teshsuite_src ${teshsuite_src} ${CMAKE_CURRENT_SOURCE_DIR}/${x}/${x}.cpp)
11 ## Some need to be run with all factories, some don't need tesh to run
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)
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)