42dfbc7d2f
correctly generate hwloc library automatically define OMPI/OPAL/ORTE_OMPORTS for user applications update the f77 bindings This commit was SVN r26893.
25 строки
731 B
CMake
25 строки
731 B
CMake
# Copyright (c) 2007-2012 High Performance Computing Center Stuttgart,
|
|
# University of Stuttgart. All rights reserved.
|
|
# $COPYRIGHT$
|
|
#
|
|
# Additional copyrights may follow
|
|
#
|
|
# $HEADER$
|
|
#
|
|
|
|
|
|
ADD_SUBDIRECTORY(mpi)
|
|
|
|
|
|
FILE(READ ${OpenMPI_SOURCE_DIR}/contrib/platform/win32/examples/chello.vcxproj EXAMPLE_SOLUTION)
|
|
|
|
IF(CMAKE_CL_64)
|
|
STRING(REPLACE "Win32" "X64" EXAMPLE_SOLUTION "${EXAMPLE_SOLUTION}")
|
|
STRING(REPLACE "X86" "X64" EXAMPLE_SOLUTION "${EXAMPLE_SOLUTION}")
|
|
ENDIF(CMAKE_CL_64)
|
|
|
|
FILE(WRITE ${OpenMPI_BINARY_DIR}/test/chello.vcxproj "${EXAMPLE_SOLUTION}")
|
|
|
|
INSTALL(FILES ${OpenMPI_SOURCE_DIR}/test/mpi/environment/chello.c
|
|
${OpenMPI_BINARY_DIR}/test/chello.vcxproj
|
|
DESTINATION share/examples) |