1
1

Include an example to show how to use Visual Studio together with Open MPI.

When building Open MPI with CMake, a VS solution will be generated automatically, this solution can be directly used.
For the installer, it's a bit tricky, need to do more in NSIS config codes, in order to make the solution file aware the installation directory of user.

This commit was SVN r26616.
Этот коммит содержится в:
Shiqing Fan 2012-06-18 08:58:27 +00:00
родитель 9c353cf9d8
Коммит e788691fdb
2 изменённых файлов: 7 добавлений и 0 удалений

Просмотреть файл

@ -107,6 +107,7 @@ ADD_SUBDIRECTORY(opal)
INCLUDE_DIRECTORIES (${LIBEVENT_INCLUDE_DIRS})
ADD_SUBDIRECTORY(ompi)
ADD_SUBDIRECTORY(orte)
ADD_SUBDIRECTORY(test)
END_CONFIGURE()

Просмотреть файл

@ -7,6 +7,8 @@
# $HEADER$
#
#PROJECT(CHELLO C CXX)
SET(CHELLO_FILES
chello.c
)
@ -14,3 +16,7 @@ SET(CHELLO_FILES
ADD_EXECUTABLE (chello ${CHELLO_FILES})
TARGET_LINK_LIBRARIES (chello libmpi)
INSTALL(FILES ${OpenMPI_SOURCE_DIR}/test/mpi/environment/chello.c
${OpenMPI_BINARY_DIR}/test/mpi/environment/chello.*
DESTINATION share/examples)