- Add ARM64 architecture support for Linux builds - Fix case-sensitive header includes (ueye.h → uEye.h) for Unix systems - Update CMake modules to find ARM64 library paths: * Add /opt/ids/ueye/lib/aarch64-linux-gnu for IDS uEye SDK * Add aarch64-linux-gnu paths to GStreamer module - Add ARM64 packaging support in main CMakeLists.txt - Make intervalometer conditional on IDS uEye availability - Remove 28 unused CMake Find modules for camera vendors: * ATK, Aptina, Bitflow, Cairo, EDT, Euresys, FreeImage * GigESim, Glew, GTK2, Imperx, IOtech, KAYA, Matrox * National Instruments, OpenCV, OpenGL, Phoenix, Pleora * Pylon, QCam, Sapera, XCLIB, and utility libraries - Retain only essential modules for GStreamer plugin development Successfully builds all 8 plugins on ARM64: idsueye, intervalometer, linescan, bayerutils, extractcolor, select, misb, videoadjust Tested on: Linux ARM64 (aarch64) with GStreamer 1.16.3
63 lines
1.9 KiB
CMake
63 lines
1.9 KiB
CMake
# - Try to find IDS uEye SDK
|
|
# Once done this will define
|
|
#
|
|
# IDSUEYE_FOUND - system has IDS uEye SDK
|
|
# IDSUEYE_INCLUDE_DIR - the IDS uEye SDK include directory
|
|
# IDSUEYE_LIBRARIES - the libraries needed to use IDS uEye SDK
|
|
|
|
# Copyright (c) 2006, Tim Beaulen <tbscope@gmail.com>
|
|
# Copyright (c) 2017 outside US, United States Government, Joshua M. Doe <oss@nvl.army.mil>
|
|
#
|
|
# Redistribution and use is allowed according to the terms of the BSD license.
|
|
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
|
|
if (WIN32)
|
|
if (NOT IDSUEYE_DIR)
|
|
set (IDSUEYE_DIR "C:/Program Files/IDS/uEye/Develop" CACHE PATH "Directory containing IDS uEye SDK includes and libraries")
|
|
endif ()
|
|
|
|
if (CMAKE_SIZEOF_VOID_P MATCHES "8")
|
|
set(_LIB_NAME "uEye_api_64")
|
|
else ()
|
|
set(_LIB_NAME "uEye_api")
|
|
endif ()
|
|
|
|
find_path (IDSUEYE_INCLUDE_DIR uEye.h
|
|
PATHS
|
|
"${IDSUEYE_DIR}/include"
|
|
DOC "Directory containing IDS uEye include files")
|
|
endif (WIN32)
|
|
|
|
if (UNIX)
|
|
if (NOT IDSUEYE_DIR)
|
|
set (IDSUEYE_DIR "/opt/ids/ueye" CACHE PATH "Directory containing IDS uEye SDK includes and libraries")
|
|
endif ()
|
|
|
|
set(_LIB_NAME "libueye_api.so")
|
|
|
|
find_path (IDSUEYE_INCLUDE_DIR uEye.h
|
|
PATHS
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/sys/idsueye/include"
|
|
"${IDSUEYE_DIR}/include"
|
|
"/opt/ids/ueye/include"
|
|
"/usr/include/ueye"
|
|
"/usr/include"
|
|
DOC "Directory containing IDS uEye include files")
|
|
endif (UNIX)
|
|
|
|
find_library (_uEyeLib NAMES ${_LIB_NAME}
|
|
PATHS
|
|
"${IDSUEYE_DIR}/lib"
|
|
"${IDSUEYE_DIR}/lib/aarch64-linux-gnu"
|
|
"${IDSUEYE_DIR}/lib/arm-linux-gnueabihf"
|
|
"/opt/ids/ueye/lib"
|
|
"/opt/ids/ueye/lib/aarch64-linux-gnu"
|
|
"/opt/ids/ueye/lib/arm-linux-gnueabihf"
|
|
"${IDSUEYE_DIR}/Lib")
|
|
|
|
set (IDSUEYE_LIBRARIES ${_uEyeLib})
|
|
|
|
mark_as_advanced (_uEyeLib)
|
|
|
|
include (FindPackageHandleStandardArgs)
|
|
find_package_handle_standard_args (IDSUEYE DEFAULT_MSG IDSUEYE_INCLUDE_DIR IDSUEYE_LIBRARIES)
|