X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/6a23586f55822da9d7f1ab6c5db028ab13acaccd..dc7bcc75749ca6fe24da694e8ab8682af0f67149:/examples/gras/properties/CMakeLists.txt diff --git a/examples/gras/properties/CMakeLists.txt b/examples/gras/properties/CMakeLists.txt index ab5453b877..111947cd92 100644 --- a/examples/gras/properties/CMakeLists.txt +++ b/examples/gras/properties/CMakeLists.txt @@ -5,7 +5,7 @@ set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/_properties_simulator.c ${CMAKE_CURRENT_BINARY_DIR}/_properties_bob.c PROPERTIES GENERATED true) -set(EXECUTABLE_OUTPUT_PATH "${CMAKE_CURRENT_SOURCE_DIR}") +set(EXECUTABLE_OUTPUT_PATH "${CMAKE_CURRENT_BINARY_DIR}") add_executable(properties_simulator ${CMAKE_CURRENT_BINARY_DIR}/_properties_simulator.c ${CMAKE_CURRENT_SOURCE_DIR}/properties.c) @@ -22,6 +22,13 @@ add_custom_command( ) ### Add definitions for compile -target_link_libraries(properties_simulator simgrid pthread m -fprofile-arcs) -target_link_libraries(properties_alice gras pthread m -fprofile-arcs) -target_link_libraries(properties_bob gras pthread m -fprofile-arcs) +if(NOT WIN32) +target_link_libraries(properties_simulator simgrid pthread m ) +target_link_libraries(properties_alice gras pthread m ) +target_link_libraries(properties_bob gras pthread m ) +else(NOT WIN32) +target_link_libraries(properties_simulator simgrid) +target_link_libraries(properties_alice gras) +target_link_libraries(properties_bob gras) +endif(NOT WIN32) +