Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add working directory to command line for generating files with gras_stub_generator
authornavarrop <navarrop@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Mon, 7 Mar 2011 11:14:34 +0000 (11:14 +0000)
committernavarrop <navarrop@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Mon, 7 Mar 2011 11:14:34 +0000 (11:14 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@9759 48e7efb5-ca39-0410-a469-dd3cf9ba447f

16 files changed:
examples/amok/bandwidth/CMakeLists.txt
examples/amok/saturate/CMakeLists.txt
examples/gras/all2all/CMakeLists.txt
examples/gras/chrono/CMakeLists.txt
examples/gras/mmrpc/CMakeLists.txt
examples/gras/mutual_exclusion/simple_token/CMakeLists.txt
examples/gras/ping/CMakeLists.txt
examples/gras/pmm/CMakeLists.txt
examples/gras/properties/CMakeLists.txt
examples/gras/rpc/CMakeLists.txt
examples/gras/spawn/CMakeLists.txt
examples/gras/synchro/CMakeLists.txt
examples/gras/timer/CMakeLists.txt
teshsuite/gras/datadesc/CMakeLists.txt
teshsuite/gras/empty_main/CMakeLists.txt
teshsuite/gras/small_sleep/CMakeLists.txt

index 61f0935..29b59f2 100644 (file)
@@ -20,6 +20,7 @@ add_custom_command(
                                                        ${CMAKE_CURRENT_BINARY_DIR}/_bandwidth_sensor.c
                                        DEPENDS gras_stub_generator ${CMAKE_CURRENT_SOURCE_DIR}/bandwidth.xml
                                        COMMAND ${CMAKE_BINARY_DIR}/bin/gras_stub_generator bandwidth ${CMAKE_CURRENT_SOURCE_DIR}/bandwidth.xml
+                                       WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
                                        )
                                        
 ### Add definitions for compile
index b68ff9a..651c0de 100644 (file)
@@ -20,6 +20,7 @@ add_custom_command(
                                                        ${CMAKE_CURRENT_BINARY_DIR}/_saturate_sensor.c
                                        DEPENDS gras_stub_generator ${CMAKE_CURRENT_SOURCE_DIR}/saturate.xml
                                        COMMAND ${CMAKE_BINARY_DIR}/bin/gras_stub_generator saturate ${CMAKE_CURRENT_SOURCE_DIR}/saturate.xml
+                                       WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
                                        )
                                        
 ### Add definitions for compile
index ff56104..d3ae7ed 100644 (file)
@@ -20,6 +20,7 @@ add_custom_command(
                                                        ${CMAKE_CURRENT_BINARY_DIR}/_all2all_receiver.c
                                        DEPENDS gras_stub_generator ${CMAKE_CURRENT_SOURCE_DIR}/all2all.xml
                                        COMMAND ${CMAKE_BINARY_DIR}/bin/gras_stub_generator all2all ${CMAKE_CURRENT_SOURCE_DIR}/all2all.xml
+                                       WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
                                        )
 
 ### Add definitions for compile
index da9e0ac..62d8d4a 100644 (file)
@@ -16,6 +16,7 @@ add_custom_command(
          ${CMAKE_CURRENT_BINARY_DIR}/_chrono_multiplier.c
   DEPENDS gras_stub_generator ${CMAKE_CURRENT_SOURCE_DIR}/chrono.xml
   COMMAND ${CMAKE_BINARY_DIR}/bin/gras_stub_generator chrono ${CMAKE_CURRENT_SOURCE_DIR}/chrono.xml
+  WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
 )
 
 ### Add definitions for compile
index 431dd08..4f5d118 100644 (file)
@@ -24,6 +24,7 @@ add_custom_command(
                                                        ${CMAKE_CURRENT_BINARY_DIR}/_mmrpc_server.c
                                        DEPENDS gras_stub_generator ${CMAKE_CURRENT_SOURCE_DIR}/mmrpc.xml
                                        COMMAND ${CMAKE_BINARY_DIR}/bin/gras_stub_generator mmrpc ${CMAKE_CURRENT_SOURCE_DIR}/mmrpc.xml
+                    WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
                                        )
                                        
 ### Add definitions for compile
index 926a8e9..0305c43 100644 (file)
@@ -16,6 +16,7 @@ add_custom_command(
                                                ${CMAKE_CURRENT_BINARY_DIR}/_simple_token_node.c 
                                        DEPENDS gras_stub_generator ${CMAKE_CURRENT_SOURCE_DIR}/simple_token.xml
                                        COMMAND ${CMAKE_BINARY_DIR}/bin/gras_stub_generator simple_token ${CMAKE_CURRENT_SOURCE_DIR}/simple_token.xml
+                    WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
                                        )
 
 ### Add definitions for compile
index f01ec2a..6a2400a 100644 (file)
@@ -23,6 +23,7 @@ add_custom_command(
                                                        ${CMAKE_CURRENT_BINARY_DIR}/_ping_server.c
                                        DEPENDS gras_stub_generator ${CMAKE_CURRENT_SOURCE_DIR}/ping.xml
                                        COMMAND ${CMAKE_BINARY_DIR}/bin/gras_stub_generator ping ${CMAKE_CURRENT_SOURCE_DIR}/ping.xml
+                    WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
                                        )
 
 ### Add definitions for compile
index eee153f..dfc431e 100644 (file)
@@ -20,6 +20,7 @@ add_custom_command(
                                                        ${CMAKE_CURRENT_BINARY_DIR}/_pmm_master.c
                                        DEPENDS gras_stub_generator ${CMAKE_CURRENT_SOURCE_DIR}/pmm.xml
                                        COMMAND ${CMAKE_BINARY_DIR}/bin/gras_stub_generator pmm ${CMAKE_CURRENT_SOURCE_DIR}/pmm.xml
+                                       WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
                                        )
 
 ### Add definitions for compile
index 111947c..cd83b22 100644 (file)
@@ -19,6 +19,7 @@ add_custom_command(
                                                        ${CMAKE_CURRENT_BINARY_DIR}/_properties_bob.c
                                        DEPENDS gras_stub_generator ${CMAKE_CURRENT_SOURCE_DIR}/properties.xml
                                        COMMAND ${CMAKE_BINARY_DIR}/bin/gras_stub_generator properties ${CMAKE_CURRENT_SOURCE_DIR}/properties.xml
+                                       WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
                                        )
                                        
 ### Add definitions for compile
index 5d445ce..b790002 100644 (file)
@@ -20,6 +20,7 @@ add_custom_command(
          ${CMAKE_CURRENT_BINARY_DIR}/_rpc_forwarder.c
   DEPENDS gras_stub_generator ${CMAKE_CURRENT_SOURCE_DIR}/rpc.xml
   COMMAND ${CMAKE_BINARY_DIR}/bin/gras_stub_generator rpc ${CMAKE_CURRENT_SOURCE_DIR}/rpc.xml
+  WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
 )
 
 ### Add definitions for compile
index 049002d..0a7e4c0 100644 (file)
@@ -15,7 +15,8 @@ add_custom_command(OUTPUT   ${CMAKE_CURRENT_BINARY_DIR}/_spawn_server.c
                             ${CMAKE_CURRENT_BINARY_DIR}/_spawn_simulator.c
                    DEPENDS gras_stub_generator ${CMAKE_CURRENT_SOURCE_DIR}/spawn.xml
                    COMMAND ${CMAKE_BINARY_DIR}/bin/gras_stub_generator spawn ${CMAKE_CURRENT_SOURCE_DIR}/spawn.xml
-                  )
+                   WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
+                   )
           
 ### Add definitions for compile
 if(NOT WIN32)
index e51c64f..24c555d 100644 (file)
@@ -16,6 +16,7 @@ add_custom_command(
                                                        ${CMAKE_CURRENT_BINARY_DIR}/_synchro_philosopher.c
                                        DEPENDS gras_stub_generator ${CMAKE_CURRENT_SOURCE_DIR}/synchro.xml
                                        COMMAND ${CMAKE_BINARY_DIR}/bin/gras_stub_generator synchro ${CMAKE_CURRENT_SOURCE_DIR}/synchro.xml
+                    WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
                                        )
 
 ### Add definitions for compile
index 431ee35..758fa29 100644 (file)
@@ -16,6 +16,7 @@ add_custom_command(
          ${CMAKE_CURRENT_BINARY_DIR}/_timer_client.c
   DEPENDS gras_stub_generator ${CMAKE_CURRENT_SOURCE_DIR}/timer.xml
   COMMAND ${CMAKE_BINARY_DIR}/bin/gras_stub_generator timer ${CMAKE_CURRENT_SOURCE_DIR}/timer.xml
+  WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
 )
 
 ### Add definitions for compile
index 096e872..d54b570 100644 (file)
@@ -9,5 +9,4 @@ if(NOT WIN32)
 target_link_libraries(datadesc_usage gras m pthread)
 elseif(NOT WIN32)
 target_link_libraries(datadesc_usage gras)
-endif(NOT WIN32)
-
+endif(NOT WIN32)
\ No newline at end of file
index bd6cf8b..c8df2b6 100644 (file)
@@ -16,6 +16,7 @@ add_custom_command(
                                                        ${CMAKE_CURRENT_BINARY_DIR}/_empty_main_simulator.c
                                        DEPENDS gras_stub_generator ${CMAKE_CURRENT_SOURCE_DIR}/empty_main.xml
                                        COMMAND ${CMAKE_BINARY_DIR}/bin/gras_stub_generator empty_main ${CMAKE_CURRENT_SOURCE_DIR}/empty_main.xml
+                                       WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
                                        )
                                        
 ### Add definitions for compile
index 3b6cffb..8291f77 100644 (file)
@@ -16,6 +16,7 @@ add_custom_command(
                                                        ${CMAKE_CURRENT_BINARY_DIR}/_small_sleep_simulator.c
                                        DEPENDS gras_stub_generator ${CMAKE_CURRENT_SOURCE_DIR}/small_sleep.xml
                                        COMMAND ${CMAKE_BINARY_DIR}/bin/gras_stub_generator small_sleep ${CMAKE_CURRENT_SOURCE_DIR}/small_sleep.xml
+                                       WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
                                        )
                                        
 ### Add definitions for compile