1
1
openmpi/orte/tools/orted/CMakeLists.txt

29 строки
969 B
CMake

# Copyright (c) 2007-2010 High Performance Computing Center Stuttgart,
# University of Stuttgart. All rights reserved.
# $COPYRIGHT$
#
# Additional copyrights may follow
#
# $HEADER$
#
FILE(GLOB_RECURSE ORTED_SOURCE_FILES "*.h" "*.c" "*.cc" "*.cpp")
ADD_EXECUTABLE (orted ${ORTED_SOURCE_FILES})
ADD_DEPENDENCIES(orted libopen-rte libopen-pal)
IF(BUILD_SHARED_LIBS)
TARGET_LINK_LIBRARIES (orted Ws2_32.lib shlwapi.lib
${OpenMPI_BINARY_DIR}/libopen-pal-lt${CMAKE_DEBUG_POSTFIX}.lib
libopen-rte)
SET_TARGET_PROPERTIES(orted 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}")
ELSE(BUILD_SHARED_LIBS)
TARGET_LINK_LIBRARIES (orted libopen-pal libopen-rte Ws2_32.lib shlwapi.lib)
ENDIF(BUILD_SHARED_LIBS)
INSTALL(TARGETS orted
DESTINATION bin)