
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.
22 строки
498 B
CMake
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) |