1
1
openmpi/orte/tools/orterun/CMakeLists.txt
Shiqing Fan a5281f0434 - 1/4 commit for Windows Visual Studio and CCP support:
CMakeLists and .windows files.
  In contribs preconfigured and precompiled parts.

This commit was SVN r20108.
2008-12-10 20:59:20 +00:00

38 строки
1.1 KiB
CMake

# Copyright (c) 2007-2008 High Performance Computing Center Stuttgart,
# University of Stuttgart. All rights reserved.
# $COPYRIGHT$
#
# Additional copyrights may follow
#
# $HEADER$
#
PROJECT(ORTERUN)
FILE(GLOB_RECURSE ORTERUN_SOURCE_FILES "*.h" "*.c" "*.cc" "*.cpp")
ADD_EXECUTABLE (orterun ${ORTERUN_SOURCE_FILES})
IF(BUILD_SHARED_LIBS)
SET_TARGET_PROPERTIES(orterun PROPERTIES COMPILE_FLAGS "-D_USRDLL -DOPAL_IMPORTS -DOMPI_IMPORTS -DORTE_IMPORTS")
SET_SOURCE_FILES_PROPERTIES(${ORTERUN_SOURCE_FILES} PROPERTIES LANGUAGE CXX)
ENDIF(BUILD_SHARED_LIBS)
TARGET_LINK_LIBRARIES (orterun Ws2_32.lib shlwapi.lib)
ADD_DEPENDENCIES (orterun libopen-pal libopen-rte)
ADD_CUSTOM_COMMAND (TARGET orterun
POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy
${OpenMPI_BINARY_DIR}/${CMAKE_CFG_INTDIR}/orterun.exe
${PROJECT_BINARY_DIR}/mpirun.exe
COMMENT "Copying renamed executables...")
INSTALL(TARGETS orterun
DESTINATION bin)
INSTALL(FILES help-orterun.txt DESTINATION share/openmpi)
INSTALL(FILES ${PROJECT_BINARY_DIR}/mpirun.exe
DESTINATION bin)