2009-05-07 21:41:05 +04:00
|
|
|
# Copyright (c) 2007-2009 High Performance Computing Center Stuttgart,
|
2008-12-10 23:59:20 +03:00
|
|
|
# University of Stuttgart. All rights reserved.
|
|
|
|
# $COPYRIGHT$
|
|
|
|
#
|
|
|
|
# Additional copyrights may follow
|
|
|
|
#
|
|
|
|
# $HEADER$
|
|
|
|
#
|
|
|
|
|
|
|
|
FILE(GLOB_RECURSE ORTE_CLEAN_SOURCE_FILES "*.h" "*.c" "*.cc" "*.cpp")
|
|
|
|
|
|
|
|
ADD_EXECUTABLE (orte-clean ${ORTE_CLEAN_SOURCE_FILES})
|
|
|
|
|
|
|
|
IF(BUILD_SHARED_LIBS)
|
2009-05-07 21:41:05 +04:00
|
|
|
SET_TARGET_PROPERTIES(orte-clean PROPERTIES
|
|
|
|
COMPILE_FLAGS "-D_USRDLL -DOPAL_IMPORTS -DOMPI_IMPORTS -DORTE_IMPORTS /TP")
|
2008-12-10 23:59:20 +03:00
|
|
|
ENDIF(BUILD_SHARED_LIBS)
|
|
|
|
|
|
|
|
TARGET_LINK_LIBRARIES (orte-clean Ws2_32.lib shlwapi.lib)
|
|
|
|
|
|
|
|
ADD_DEPENDENCIES (orte-clean libopen-pal libopen-rte)
|
|
|
|
|
|
|
|
ADD_CUSTOM_COMMAND (TARGET orte-clean
|
|
|
|
POST_BUILD
|
|
|
|
COMMAND ${CMAKE_COMMAND} -E copy
|
|
|
|
${OpenMPI_BINARY_DIR}/${CMAKE_CFG_INTDIR}/orte-clean.exe
|
|
|
|
${PROJECT_BINARY_DIR}/ompi-clean.exe
|
|
|
|
COMMENT "Copying renamed executables...")
|
|
|
|
|
|
|
|
INSTALL(TARGETS orte-clean
|
|
|
|
DESTINATION bin)
|
|
|
|
INSTALL(FILES help-orte-clean.txt DESTINATION share/openmpi)
|
|
|
|
INSTALL(FILES ${PROJECT_BINARY_DIR}/ompi-clean.exe
|
|
|
|
DESTINATION bin)
|