2010-01-14 18:10:20 +00:00
|
|
|
# Copyright (c) 2007-2010 High Performance Computing Center Stuttgart,
|
2008-12-10 20:59:20 +00:00
|
|
|
# University of Stuttgart. All rights reserved.
|
|
|
|
# $COPYRIGHT$
|
|
|
|
#
|
|
|
|
# Additional copyrights may follow
|
|
|
|
#
|
|
|
|
# $HEADER$
|
|
|
|
#
|
|
|
|
|
|
|
|
FILE(GLOB_RECURSE OMPI_INFO_SOURCE_FILES "*.h" "*.c" "*.cc" "*.cpp")
|
|
|
|
|
|
|
|
ADD_EXECUTABLE (ompi_info ${OMPI_INFO_SOURCE_FILES})
|
|
|
|
|
2010-11-09 08:32:45 +00:00
|
|
|
ADD_DEPENDENCIES(ompi_info libmpi)
|
2008-12-10 20:59:20 +00:00
|
|
|
IF(BUILD_SHARED_LIBS)
|
2010-04-21 12:45:00 +00:00
|
|
|
SET_TARGET_PROPERTIES(ompi_info PROPERTIES
|
|
|
|
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 20:59:20 +00:00
|
|
|
ENDIF(BUILD_SHARED_LIBS)
|
|
|
|
|
2010-11-19 15:54:13 +00:00
|
|
|
SET_TARGET_PROPERTIES(ompi_info PROPERTIES
|
|
|
|
DEBUG_POSTFIX "${OMPI_EXE_DEBUG_POSTFIX}")
|
|
|
|
|
2010-11-11 12:02:54 +00:00
|
|
|
TARGET_LINK_LIBRARIES (ompi_info libmpi libopen-rte libopen-pal Ws2_32.lib shlwapi.lib)
|
2010-01-14 21:50:42 +00:00
|
|
|
|
2008-12-10 20:59:20 +00:00
|
|
|
INSTALL(TARGETS ompi_info
|
|
|
|
DESTINATION bin)
|
|
|
|
INSTALL(FILES help-ompi_info.txt DESTINATION share/openmpi)
|