Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Generate files correctely with gras_stub_generator.
[simgrid.git] / examples / simdag / CMakeLists.txt
1 cmake_minimum_required(VERSION 2.6)
2
3 set(EXECUTABLE_OUTPUT_PATH "${PROJECT_DIRECTORY}/examples/simdag/")
4
5 add_executable(ex_sd_test sd_test.c)
6 add_executable(ex_sd_test2 sd_test2.c)
7 add_executable(ex_sd_seq_access sd_seq_access.c)
8
9 ### Add definitions for compile
10 target_link_libraries(ex_sd_test simgrid pthread m -fprofile-arcs)
11 target_link_libraries(ex_sd_test2 simgrid pthread m -fprofile-arcs)
12 target_link_libraries(ex_sd_seq_access simgrid pthread m -fprofile-arcs)
13
14 add_custom_command(TARGET ex_sd_test
15 POST_BUILD
16 COMMAND "cp" 
17 ARGS ${PROJECT_DIRECTORY}/examples/simdag/ex_sd_test ${PROJECT_DIRECTORY}/examples/simdag/sd_test
18 WORKING_DIRECTORY "${PROJECT_DIRECTORY}/examples/simdag/"
19 )
20 add_custom_command(TARGET ex_sd_test2
21 POST_BUILD
22 COMMAND "cp" 
23 ARGS ${PROJECT_DIRECTORY}/examples/simdag/ex_sd_test2 ${PROJECT_DIRECTORY}/examples/simdag/sd_test2
24 WORKING_DIRECTORY "${PROJECT_DIRECTORY}/examples/simdag/"
25 )
26
27 add_custom_command(TARGET ex_sd_seq_access
28 POST_BUILD
29 COMMAND "cp" 
30 ARGS ${PROJECT_DIRECTORY}/examples/simdag/ex_sd_seq_access ${PROJECT_DIRECTORY}/examples/simdag/sd_seq_access
31 WORKING_DIRECTORY "${PROJECT_DIRECTORY}/examples/simdag/"
32 )