X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/db9e1e77f7d08a187ac8e5588e42b3358879de9f..1f834c56a869248347fa4dd12a41ded689989935:/teshsuite/gras/empty_main/CMakeLists.txt diff --git a/teshsuite/gras/empty_main/CMakeLists.txt b/teshsuite/gras/empty_main/CMakeLists.txt index aff518ca4b..c8df2b6d42 100644 --- a/teshsuite/gras/empty_main/CMakeLists.txt +++ b/teshsuite/gras/empty_main/CMakeLists.txt @@ -4,7 +4,7 @@ set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/_empty_main_function.c ${CMAKE_CURRENT_BINARY_DIR}/_empty_main_simulator.c PROPERTIES GENERATED true) -set(EXECUTABLE_OUTPUT_PATH "${CMAKE_CURRENT_SOURCE_DIR}") +set(EXECUTABLE_OUTPUT_PATH "${CMAKE_CURRENT_BINARY_DIR}") add_executable(empty_main_function ${CMAKE_CURRENT_SOURCE_DIR}/empty_main.c ${CMAKE_CURRENT_BINARY_DIR}/_empty_main_function.c) @@ -16,8 +16,14 @@ 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 +if(NOT WIN32) target_link_libraries(empty_main_simulator simgrid m pthread) target_link_libraries(empty_main_function gras m pthread) +else(NOT WIN32) +target_link_libraries(empty_main_simulator simgrid) +target_link_libraries(empty_main_function gras) +endif(NOT WIN32) \ No newline at end of file