1
1
openmpi/test/mpi/environment/CMakeLists.txt
Shiqing Fan e788691fdb 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.
2012-06-18 08:58:27 +00:00

22 строки
498 B
CMake

# Copyright (c) 2007-2010 High Performance Computing Center Stuttgart,
# University of Stuttgart. All rights reserved.
# $COPYRIGHT$
#
# Additional copyrights may follow
#
# $HEADER$
#
#PROJECT(CHELLO C CXX)
SET(CHELLO_FILES
chello.c
)
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)