Commit a50abd75 authored by Dominik Charousset's avatar Dominik Charousset

categorized examples

parent 36491961
...@@ -177,19 +177,19 @@ cppa/util/wrapped.hpp ...@@ -177,19 +177,19 @@ cppa/util/wrapped.hpp
cppa/weak_intrusive_ptr.hpp cppa/weak_intrusive_ptr.hpp
cppa/weak_ptr_anchor.hpp cppa/weak_ptr_anchor.hpp
cppa/wildcard_position.hpp cppa/wildcard_position.hpp
examples/announce_example_1.cpp examples/event_based_api/dining_philosophers.cpp
examples/announce_example_2.cpp examples/hello_world.cpp
examples/announce_example_3.cpp examples/message_passing/dancing_kirby.cpp
examples/announce_example_4.cpp examples/message_passing/math_actor.cpp
examples/announce_example_5.cpp examples/remote_actors/distributed_math_actor.cpp
examples/dancing_kirby.cpp examples/remote_actors/group_chat.cpp
examples/dining_philosophers.cpp examples/remote_actors/group_server.cpp
examples/distributed_math_actor_example.cpp examples/remote_actors/type_plugins.hpp
examples/group_chat.cpp examples/type_system/announce_1.cpp
examples/group_server.cpp examples/type_system/announce_2.cpp
examples/hello_world_example.cpp examples/type_system/announce_3.cpp
examples/math_actor_example.cpp examples/type_system/announce_4.cpp
examples/type_plugins.hpp examples/type_system/announce_5.cpp
src/abstract_tuple.cpp src/abstract_tuple.cpp
src/actor.cpp src/actor.cpp
src/actor_addressing.cpp src/actor_addressing.cpp
......
cmake_minimum_required(VERSION 2.6) cmake_minimum_required(VERSION 2.6)
project(cppa_examples CXX) project(cppas CXX)
add_custom_target(all_examples) add_custom_target(all_examples)
macro(add_example name) macro(add name folder)
add_executable(${name} ${name}.cpp ${ARGN}) add_executable(${name} ${folder}/${name}.cpp ${ARGN})
target_link_libraries(${name} ${CMAKE_DL_LIBS} ${CPPA_LIBRARY} ${PTHREAD_LIBRARIES}) target_link_libraries(${name} ${CMAKE_DL_LIBS} ${CPPA_LIBRARY} ${PTHREAD_LIBRARIES})
add_dependencies(${name} all_examples) add_dependencies(${name} all_examples)
endmacro() endmacro()
add_example(announce_example_1) add(announce_1 type_system)
add_example(announce_example_2) add(announce_2 type_system)
add_example(announce_example_3) add(announce_3 type_system)
add_example(announce_example_4) add(announce_4 type_system)
add_example(announce_example_5) add(announce_5 type_system)
add_example(dancing_kirby) add(dancing_kirby message_passing)
add_example(dining_philosophers) add(dining_philosophers event_based_api)
add_example(hello_world_example) add(hello_world .)
add_example(math_actor_example) add(math_actor message_passing)
add_example(distributed_math_actor_example) add(distributed_math_actor remote_actors)
add_example(group_server) add(group_server remote_actors)
add_example(group_chat) add(group_chat remote_actors)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment