Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
77786c2bb610c7e83b685c40cbc41c4e431e4f37
[simgrid.git] / examples / msg / masterslave / CMakeLists.txt
1 cmake_minimum_required(VERSION 2.6)
2
3 set(EXECUTABLE_OUTPUT_PATH "${CMAKE_CURRENT_BINARY_DIR}")
4
5 add_executable(masterslave_failure "masterslave_failure.c")
6 add_executable(masterslave_forwarder "masterslave_forwarder.c")
7 add_executable(masterslave_mailbox "masterslave_mailbox.c")
8 add_executable(masterslave_bypass "masterslave_bypass.c")
9 add_executable(masterslave_console "masterslave_console.c")
10 add_executable(masterslave_cluster "masterslave_cluster.c")
11
12 ### Add definitions for compile
13 if(WIN32)
14 target_link_libraries(masterslave_forwarder simgrid )
15 target_link_libraries(masterslave_failure simgrid )
16 target_link_libraries(masterslave_mailbox simgrid )
17 target_link_libraries(masterslave_bypass simgrid )
18 target_link_libraries(masterslave_console simgrid )
19 else(WIN32)
20 target_link_libraries(masterslave_forwarder simgrid m )
21 target_link_libraries(masterslave_failure simgrid m )
22 target_link_libraries(masterslave_mailbox simgrid m )
23 target_link_libraries(masterslave_bypass simgrid m )
24 target_link_libraries(masterslave_console simgrid m )
25 endif(WIN32)
26 target_link_libraries(masterslave_cluster simgrid)