Guest User

Untitled

a guest
May 14th, 2013
371
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CMake 0.94 KB | None | 0 0
  1. # This module defines
  2. #  CCV_INCLUDE_DIR, where to find ccv.h.
  3. #  CCV_FOUND, If false, do not try to use CCV.
  4. # also defined, but not for general use are
  5. #  CCV_LIBRARY, where to find the CCV library.
  6.  
  7. FIND_PATH(CCV_INCLUDE_DIR ccv.h PATHS
  8.   /home/vojta/fuerte_workspace/sandbox/object_manipulator/include
  9.   )
  10.  
  11. SET(CCV_NAMES ${CCV_NAMES} ccv libccv libccv.a)
  12. FIND_LIBRARY(CCV_LIBRARY NAMES ${CCV_NAMES}
  13.   PATHS
  14.   /home/vojta/fuerte_workspace/sandbox/object_manipulator/lib
  15. )
  16.  
  17. # handle the QUIETLY and REQUIRED arguments and set CCV_FOUND to TRUE if
  18. # all listed variables are TRUE
  19. IF(CCV_LIBRARY AND CCV_INCLUDE_DIR)
  20.   SET(CCV_FOUND "YES")
  21.   IF(NOT CCV_FIND_QUIETLY)
  22.     MESSAGE(STATUS "Found CCV: ${CCV_LIBRARY}")
  23.   ENDIF(NOT CCV_FIND_QUIETLY)
  24. ELSE(CCV_LIBRARY AND CCV_INCLUDE_DIR)
  25.   IF(NOT CCV_FIND_QUIETLY)
  26.     MESSAGE(STATUS "Warning: Unable to find CCV!")
  27.   ENDIF(NOT CCV_FIND_QUIETLY)
  28. ENDIF(CCV_LIBRARY AND CCV_INCLUDE_DIR)
Add Comment
Please, Sign In to add comment