2326f14be5
This commit was SVN r20634.
27 строки
843 B
CMake
27 строки
843 B
CMake
# Copyright (c) 2007-2008 High Performance Computing Center Stuttgart,
|
|
# University of Stuttgart. All rights reserved.
|
|
# $COPYRIGHT$
|
|
#
|
|
# Additional copyrights may follow
|
|
#
|
|
# $HEADER$
|
|
#
|
|
|
|
FILE(GLOB_RECURSE OPAL_RESTART_SOURCE_FILES "*.h" "*.c" "*.cc" "*.cpp")
|
|
|
|
ADD_EXECUTABLE (opal-restart ${OPAL_RESTART_SOURCE_FILES})
|
|
|
|
IF(BUILD_SHARED_LIBS)
|
|
SET_TARGET_PROPERTIES(opal-restart PROPERTIES COMPILE_FLAGS "-D_USRDLL -DOPAL_IMPORTS -DOMPI_IMPORTS -DORTE_IMPORTS")
|
|
SET_SOURCE_FILES_PROPERTIES(${OPAL_RESTART_SOURCE_FILES} PROPERTIES LANGUAGE CXX)
|
|
ENDIF(BUILD_SHARED_LIBS)
|
|
|
|
TARGET_LINK_LIBRARIES (opal-restart Ws2_32.lib shlwapi.lib)
|
|
|
|
INSTALL(TARGETS opal-restart
|
|
DESTINATION bin)
|
|
INSTALL(FILES help-opal-restart.txt DESTINATION share/openmpi)
|
|
|
|
ADD_DEPENDENCIES (opal-restart libopen-pal)
|
|
|