CMakeUserFindAUTOPACK: Difference between revisions

From KitwarePublic
Jump to navigationJump to search
(Add explicit preformat markup)
(Remove leading space rectangles from preformatted blocks)
Line 2: Line 2:
-----
-----
<pre>
<pre>
  # Find the AUTOPACK includes and library
# Find the AUTOPACK includes and library
  #
#
  # Autopack is a message-passing library which transparently packs small messages into  
# Autopack is a message-passing library which transparently packs small messages into  
  # fewer larger ones for more efficient transport by MPI. It can be found at:
# fewer larger ones for more efficient transport by MPI. It can be found at:
  #      http://www-unix.mcs.anl.gov/autopack/
#      http://www-unix.mcs.anl.gov/autopack/
  #
#
  # AUTOPACK_INCLUDE_DIR - where to find autopack.h
# AUTOPACK_INCLUDE_DIR - where to find autopack.h
  # AUTOPACK_LIBRARIES  - List of fully qualified libraries to link against.
# AUTOPACK_LIBRARIES  - List of fully qualified libraries to link against.
  # AUTOPACK_FOUND      - Do not attempt to use if "no" or undefined.
# AUTOPACK_FOUND      - Do not attempt to use if "no" or undefined.
 
 
  FIND_PATH(AUTOPACK_INCLUDE_DIR autopack.h
FIND_PATH(AUTOPACK_INCLUDE_DIR autopack.h
    /usr/local/include
  /usr/local/include
    /usr/include
  /usr/include
  )
)
 
 
  FIND_LIBRARY(AUTOPACK_LIBRARY autopack
FIND_LIBRARY(AUTOPACK_LIBRARY autopack
    /usr/local/lib
  /usr/local/lib
    /usr/lib
  /usr/lib
  )
)
 
 
  IF(AUTOPACK_INCLUDE_DIR)
IF(AUTOPACK_INCLUDE_DIR)
    IF(AUTOPACK_LIBRARY)
  IF(AUTOPACK_LIBRARY)
      SET( AUTOPACK_LIBRARIES ${AUTOPACK_LIBRARY} )
    SET( AUTOPACK_LIBRARIES ${AUTOPACK_LIBRARY} )
      SET( AUTOPACK_FOUND "YES" )
    SET( AUTOPACK_FOUND "YES" )
    ENDIF(AUTOPACK_LIBRARY)
  ENDIF(AUTOPACK_LIBRARY)
  ENDIF(AUTOPACK_INCLUDE_DIR)
ENDIF(AUTOPACK_INCLUDE_DIR)
</pre>
</pre>



Revision as of 21:04, 20 April 2018

Back


# Find the AUTOPACK includes and library
#
# Autopack is a message-passing library which transparently packs small messages into 
# fewer larger ones for more efficient transport by MPI. It can be found at:
#       http://www-unix.mcs.anl.gov/autopack/
#
# AUTOPACK_INCLUDE_DIR - where to find autopack.h
# AUTOPACK_LIBRARIES   - List of fully qualified libraries to link against.
# AUTOPACK_FOUND       - Do not attempt to use if "no" or undefined.

FIND_PATH(AUTOPACK_INCLUDE_DIR autopack.h
  /usr/local/include
  /usr/include
)

FIND_LIBRARY(AUTOPACK_LIBRARY autopack
  /usr/local/lib
  /usr/lib
)

IF(AUTOPACK_INCLUDE_DIR)
  IF(AUTOPACK_LIBRARY)
    SET( AUTOPACK_LIBRARIES ${AUTOPACK_LIBRARY} )
    SET( AUTOPACK_FOUND "YES" )
  ENDIF(AUTOPACK_LIBRARY)
ENDIF(AUTOPACK_INCLUDE_DIR)

Back



CMake: [Welcome | Site Map]