2010-01-14 21:10:20 +03:00
|
|
|
# Copyright (c) 2007-2010 High Performance Computing Center Stuttgart,
|
2008-12-10 23:59:20 +03:00
|
|
|
# University of Stuttgart. All rights reserved.
|
|
|
|
# Copyright (c) 2008 The University of Tennessee and The University
|
|
|
|
# of Tennessee Research Foundation. All rights
|
|
|
|
# reserved.
|
|
|
|
# $COPYRIGHT$
|
|
|
|
#
|
|
|
|
# Additional copyrights may follow
|
|
|
|
#
|
|
|
|
# $HEADER$
|
|
|
|
#
|
|
|
|
|
|
|
|
FILE(GLOB_RECURSE OMPI_SERVER_SOURCE_FILES "*.h" "*.c" "*.cc" "*.cpp")
|
|
|
|
|
|
|
|
ADD_EXECUTABLE (ompi-server ${OMPI_SERVER_SOURCE_FILES})
|
|
|
|
|
2010-11-09 11:32:45 +03:00
|
|
|
ADD_DEPENDENCIES(ompi-server libmpi)
|
2008-12-10 23:59:20 +03:00
|
|
|
IF(BUILD_SHARED_LIBS)
|
2009-05-07 21:41:05 +04:00
|
|
|
SET_TARGET_PROPERTIES(ompi-server PROPERTIES
|
2010-04-21 16:45:00 +04:00
|
|
|
COMPILE_FLAGS "${OMPI_C_DEF_PRE}_USRDLL ${OMPI_C_DEF_PRE}OPAL_IMPORTS
|
|
|
|
${OMPI_C_DEF_PRE}OMPI_IMPORTS ${OMPI_C_DEF_PRE}ORTE_IMPORTS
|
|
|
|
${OMPI_CXX_LAN_FLAG}")
|
2008-12-10 23:59:20 +03:00
|
|
|
ENDIF(BUILD_SHARED_LIBS)
|
|
|
|
|
2010-11-11 15:02:54 +03:00
|
|
|
TARGET_LINK_LIBRARIES (ompi-server libmpi libopen-pal libopen-rte Ws2_32.lib shlwapi.lib)
|
2008-12-10 23:59:20 +03:00
|
|
|
|
|
|
|
INSTALL(TARGETS ompi-server
|
|
|
|
DESTINATION bin)
|
|
|
|
INSTALL(FILES help-ompi-server.txt DESTINATION share/openmpi)
|