X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/42e69c5d43675587aae0bb367b8bf0746f6be13a..022f306dcd08f62b30b45ffecec00e6b4c8c22cc:/examples/simdag/CMakeLists.txt diff --git a/examples/simdag/CMakeLists.txt b/examples/simdag/CMakeLists.txt index afb0ab6884..91c8327225 100644 --- a/examples/simdag/CMakeLists.txt +++ b/examples/simdag/CMakeLists.txt @@ -9,7 +9,10 @@ add_executable(sd_avail sd_avail.c) add_executable(sd_typed_tasks_test sd_typed_tasks_test.c) add_executable(sd_comm_throttling sd_comm_throttling.c) add_executable(sd_seq_access sd_seq_access.c) -add_executable(simdag_tracing simdag_trace.c) + +if (HAVE_TRACING) + add_executable(simdag_tracing simdag_trace.c) +endif() ### Add definitions for compile if(NOT WIN32) @@ -20,7 +23,10 @@ if(NOT WIN32) target_link_libraries(sd_typed_tasks_test simgrid pthread m ) target_link_libraries(sd_comm_throttling simgrid pthread m ) target_link_libraries(sd_seq_access simgrid pthread m ) - target_link_libraries(simdag_tracing simgrid pthread m ) + + if (HAVE_TRACING) + target_link_libraries(simdag_tracing simgrid pthread m ) + endif() add_custom_command(TARGET ex_sd_test POST_BUILD @@ -40,8 +46,10 @@ else() target_link_libraries(sd_typed_tasks_test simgrid) target_link_libraries(sd_comm_throttling simgrid) target_link_libraries(sd_seq_access simgrid) - target_link_libraries(simdag_tracing simgrid) - + if (HAVE_TRACING) + target_link_libraries(simdag_tracing simgrid) + endif() + add_custom_command(TARGET ex_sd_test POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_BINARY_DIR}/ex_sd_test.exe ${CMAKE_CURRENT_BINARY_DIR}/sd_test.exe