else()
set(CMAKE_C_COMPILER "${CMAKE_BINARY_DIR}/smpi_script/bin/smpicc")
endif()
-
- set(EXECUTABLE_OUTPUT_PATH "${CMAKE_CURRENT_BINARY_DIR}")
-
include_directories(BEFORE "${CMAKE_HOME_DIRECTORY}/include/smpi")
- add_executable(bcast bcast.c)
- add_executable(bcast_coll bcast_coll.c)
+
+ add_executable (bcast bcast.c)
target_link_libraries(bcast simgrid)
+ add_executable (bcast_coll bcast_coll.c)
target_link_libraries(bcast_coll simgrid)
endif()