-# KADEMLIA EXAMPLE
-add_executable (s4u-dht-kademlia EXCLUDE_FROM_ALL dht-kademlia/s4u-dht-kademlia.cpp dht-kademlia/node.cpp
- dht-kademlia/routing_table.cpp dht-kademlia/answer.cpp)
-target_link_libraries(s4u-dht-kademlia simgrid)
-set_target_properties(s4u-dht-kademlia PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/dht-kademlia)
-add_dependencies(tests s4u-dht-kademlia)
-foreach (file answer routing_table node s4u-dht-kademlia)
- set(examples_src ${examples_src} ${CMAKE_CURRENT_SOURCE_DIR}/dht-kademlia/${file}.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/dht-kademlia/${file}.hpp)
-endforeach()
-set(examples_src ${examples_src} ${CMAKE_CURRENT_SOURCE_DIR}/dht-kademlia/message.hpp)
-
-# BITTORRENT EXAMPLE
-add_executable (s4u-bittorrent EXCLUDE_FROM_ALL app-bittorrent/s4u-bittorrent.cpp app-bittorrent/s4u-peer.cpp
- app-bittorrent/s4u-tracker.cpp)
-target_link_libraries(s4u-bittorrent simgrid)
-set_target_properties(s4u-bittorrent PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/app-bittorrent)
-add_dependencies(tests s4u-bittorrent)
-foreach (file s4u-bittorrent s4u-peer s4u-tracker)
- set(examples_src ${examples_src} ${CMAKE_CURRENT_SOURCE_DIR}/app-bittorrent/${file}.cpp
- ${CMAKE_CURRENT_SOURCE_DIR}/app-bittorrent/${file}.hpp)
-endforeach()