X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/743d783b7f96055b312f7d9daf4ccb48efc4c2f7..54ce1078962f1acdd7af97bc1c27d13d1c6396cc:/buildtools/Cmake/simgrid_CMakeList/examples/gras/rpc/CMakeLists.txt diff --git a/buildtools/Cmake/simgrid_CMakeList/examples/gras/rpc/CMakeLists.txt b/buildtools/Cmake/simgrid_CMakeList/examples/gras/rpc/CMakeLists.txt new file mode 100644 index 0000000000..c1f9cbf659 --- /dev/null +++ b/buildtools/Cmake/simgrid_CMakeList/examples/gras/rpc/CMakeLists.txt @@ -0,0 +1,18 @@ +cmake_minimum_required(VERSION 2.6) + +set_source_files_properties(_rpc_simulator.c _rpc_client.c _rpc_forwarder.c _rpc_server.c +PROPERTIES GENERATED true) + +set(EXECUTABLE_OUTPUT_PATH "./") +set(LIBRARY_OUTPUT_PATH "${PROJECT_DIRECTORY}/lib") + +add_executable(rpc_simulator _rpc_simulator.c rpc.c) +add_executable(rpc_client _rpc_client.c rpc.c) +add_executable(rpc_forwarder _rpc_forwarder.c rpc.c) +add_executable(rpc_server _rpc_server.c rpc.c) + +### Add definitions for compile +target_link_libraries(rpc_simulator simgrid pthread m -fprofile-arcs) +target_link_libraries(rpc_client gras pthread m -fprofile-arcs) +target_link_libraries(rpc_forwarder gras pthread m -fprofile-arcs) +target_link_libraries(rpc_server gras pthread m -fprofile-arcs)