]> AND Public Git Repository - simgrid.git/blobdiff - examples/gras/pmm/CMakeLists.txt
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Update file.c example since new modifications in surf and simix for storage.
[simgrid.git] / examples / gras / pmm / CMakeLists.txt
index 9048fd24843751067faa04910c00dde0bd37ed37..dfc431e7d93845d32b31ad999d41c0dd5410bae3 100644 (file)
@@ -5,7 +5,7 @@ set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/_pmm_simulator.c
                                                        ${CMAKE_CURRENT_BINARY_DIR}/_pmm_master.c
                                                        PROPERTIES GENERATED true)
 
-set(EXECUTABLE_OUTPUT_PATH "${CMAKE_CURRENT_SOURCE_DIR}")
+set(EXECUTABLE_OUTPUT_PATH "${CMAKE_CURRENT_BINARY_DIR}")
 
 add_executable(pmm_simulator   ${CMAKE_CURRENT_BINARY_DIR}/_pmm_simulator.c 
                                                                ${CMAKE_CURRENT_SOURCE_DIR}/pmm.c)
@@ -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