Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Massive mv to use cmake as the default compilation infrastructure.
[simgrid.git] / examples / simdag / CMakeLists.txt
1 cmake_minimum_required(VERSION 2.6)
2
3 set(EXECUTABLE_OUTPUT_PATH "./")
4 set(LIBRARY_OUTPUT_PATH "${PROJECT_DIRECTORY}/lib")
5
6 add_executable(ex_sd_test sd_test.c)
7 add_executable(ex_sd_test2 sd_test2.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
13 add_custom_command(TARGET ex_sd_test
14 POST_BUILD
15 COMMAND "cp" 
16 ARGS ./ex_sd_test ./sd_test
17 WORKING_DIRECTORY "${PROJECT_DIRECTORY}/examples/simdag"
18 )
19 add_custom_command(TARGET ex_sd_test2
20 POST_BUILD
21 COMMAND "cp" 
22 ARGS ./ex_sd_test2 ./sd_test2
23 WORKING_DIRECTORY "${PROJECT_DIRECTORY}/examples/simdag"
24 )