Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
the code to of "change_name" was moved into the dax loader
[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 )
11 target_link_libraries(ex_sd_test2 simgrid pthread m )
12 target_link_libraries(ex_sd_seq_access simgrid pthread m )
13
14 add_custom_command(TARGET ex_sd_test
15         POST_BUILD
16         COMMAND ${CMAKE_COMMAND} -E copy ${PROJECT_DIRECTORY}/examples/simdag/ex_sd_test ${PROJECT_DIRECTORY}/examples/simdag/sd_test
17         WORKING_DIRECTORY "${PROJECT_DIRECTORY}/examples/simdag/"
18 )
19 add_custom_command(TARGET ex_sd_test2
20         POST_BUILD
21         COMMAND ${CMAKE_COMMAND} -E copy ${PROJECT_DIRECTORY}/examples/simdag/ex_sd_test2 ${PROJECT_DIRECTORY}/examples/simdag/sd_test2
22         WORKING_DIRECTORY "${PROJECT_DIRECTORY}/examples/simdag/")
23
24 add_custom_command(TARGET ex_sd_seq_access
25         POST_BUILD
26         COMMAND ${CMAKE_COMMAND} -E copy ${PROJECT_DIRECTORY}/examples/simdag/ex_sd_seq_access ${PROJECT_DIRECTORY}/examples/simdag/sd_seq_access
27         WORKING_DIRECTORY "${PROJECT_DIRECTORY}/examples/simdag/")
28
29 get_directory_property(extra_clean_files ADDITIONAL_MAKE_CLEAN_FILES)
30 set_directory_properties(
31  PROPERTIES
32  ADDITIONAL_MAKE_CLEAN_FILES "${extra_clean_files};${PROJECT_DIRECTORY}/examples/simdag/sd_test;${PROJECT_DIRECTORY}/examples/simdag/sd_test2;${PROJECT_DIRECTORY}/examples/simdag/sd_seq_access")