872a4047ba
In CMake 2.6 and earlier, this function add dependencies for targets and also link the target libraries automatically, but in CMake 2.8,this behavior has been changed, i.e. it will only add the dependencies but no link, which will cause linking errors at compilation time. This commit was SVN r22405.
24 строки
729 B
CMake
24 строки
729 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 OPAL_CHECKPOINT_SOURCE_FILES "*.h" "*.c" "*.cc" "*.cpp")
|
|
|
|
ADD_EXECUTABLE (opal-checkpoint ${OPAL_CHECKPOINT_SOURCE_FILES})
|
|
|
|
IF(BUILD_SHARED_LIBS)
|
|
SET_TARGET_PROPERTIES(opal-checkpoint PROPERTIES
|
|
COMPILE_FLAGS "-D_USRDLL -DOPAL_IMPORTS -DOMPI_IMPORTS -DORTE_IMPORTS /TP")
|
|
ENDIF(BUILD_SHARED_LIBS)
|
|
|
|
TARGET_LINK_LIBRARIES (opal-checkpoint libopen-pal)
|
|
|
|
INSTALL(TARGETS opal-checkpoint
|
|
DESTINATION bin)
|
|
INSTALL(FILES help-opal-checkpoint.txt DESTINATION share/openmpi)
|