Ticket #23: cmake_find_pco.diff

File cmake_find_pco.diff, 873 bytes (added by Suren A. Chilingaryan, 14 years ago)
  • cmake/FindPCO.cmake

    === modified file 'cmake/FindPCO.cmake'
     
    88
    99find_package(PackageHandleStandardArgs)
    1010
    11 find_path(PCO_INCLUDE_DIRS libpco/libpco.h)
    12 find_library(PCO_LIBRARIES pco)
     11find_path(PCO_ROOT_DIR src/libpco.h PATHS ../../libpco)
     12find_path(PCO_INCLUDE_DIRS libpco.h PATHS ${PCO_ROOT_DIR} PATH_SUFFIXES libpco src)
     13find_library(PCO_LIBRARIES pco PATHS ${PF_ROOT_DIR})
    1314
    1415find_package_handle_standard_args(PCO DEFAULT_MSG PCO_LIBRARIES PCO_INCLUDE_DIRS)
    1516
  • src/cameras/pco.c

    === modified file 'src/cameras/pco.c'
     
    11
    22#include <stdlib.h>
    33#include <string.h>
    4 #include <libpco/libpco.h>
     4#include <libpco.h>
    55#include "uca.h"
    66#include "uca-cam.h"
    77#include "uca-grabber.h"