Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
one more refactored
[simgrid.git] / examples / msg / kademlia / CMakeLists.txt
1 add_executable       (kademlia kademlia.c node.c routing_table.c task.c answer.c)
2 target_link_libraries(kademlia simgrid)
3
4 ADD_TESH_FACTORIES(msg-kademlia "thread;ucontext;raw;boost" --setenv bindir=${CMAKE_BINARY_DIR}/examples/msg/kademlia --cd ${CMAKE_HOME_DIRECTORY}/examples/msg/kademlia kademlia.tesh)
5 ADD_TESH(msg-kademlia-parallel  --cfg contexts/nthreads:4 --cfg contexts/factory:thread ${CONTEXTS_SYNCHRO} --setenv bindir=${CMAKE_BINARY_DIR}/examples/msg/kademlia --cd ${CMAKE_HOME_DIRECTORY}/examples/msg/kademlia kademlia.tesh)
6
7 foreach (file answer kademlia node routing_table task)
8   set(examples_src  ${examples_src}  ${CMAKE_CURRENT_SOURCE_DIR}/${file}.c  ${CMAKE_CURRENT_SOURCE_DIR}/${file}.h)
9 endforeach()
10
11 set(examples_src  ${examples_src}  ${CMAKE_CURRENT_SOURCE_DIR}/common.h         PARENT_SCOPE)
12 set(tesh_files    ${tesh_files}    ${CMAKE_CURRENT_SOURCE_DIR}/kademlia.tesh    PARENT_SCOPE)
13 set(xml_files     ${xml_files}     ${CMAKE_CURRENT_SOURCE_DIR}/kademlia.xml     PARENT_SCOPE)
14 set(bin_files     ${bin_files}     ${CMAKE_CURRENT_SOURCE_DIR}/generate.py      PARENT_SCOPE)