Update FindIDSuEye.cmake
changes for linux, might need to conform
This commit is contained in:
parent
6a9b31c7d4
commit
5cf3cb23eb
@ -10,30 +10,43 @@
|
|||||||
#
|
#
|
||||||
# Redistribution and use is allowed according to the terms of the BSD license.
|
# Redistribution and use is allowed according to the terms of the BSD license.
|
||||||
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
|
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
|
||||||
|
if (WIN32)
|
||||||
if (NOT IDSUEYE_DIR)
|
if (NOT IDSUEYE_DIR)
|
||||||
set (IDSUEYE_DIR "C:/Program Files/IDS/uEye/Develop" CACHE PATH "Directory containing IDS uEye SDK includes and libraries")
|
set (IDSUEYE_DIR "C:/Program Files/IDS/uEye/Develop" CACHE PATH "Directory containing IDS uEye SDK includes and libraries")
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
if (CMAKE_SIZEOF_VOID_P MATCHES "8")
|
if (CMAKE_SIZEOF_VOID_P MATCHES "8")
|
||||||
set(_LIB_NAME "uEye_api_64")
|
set(_LIB_NAME "uEye_api_64")
|
||||||
else ()
|
else ()
|
||||||
set(_LIB_NAME "uEye_api")
|
set(_LIB_NAME "uEye_api")
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
find_path (IDSUEYE_INCLUDE_DIR uEye.h
|
find_path (IDSUEYE_INCLUDE_DIR uEye.h
|
||||||
PATHS
|
PATHS
|
||||||
"${IDSUEYE_DIR}/include"
|
"${IDSUEYE_DIR}/include"
|
||||||
DOC "Directory containing IDS uEye include files")
|
DOC "Directory containing IDS uEye include files")
|
||||||
|
endif (WIN32)
|
||||||
|
|
||||||
|
if (UNIX)
|
||||||
|
if (NOT IDSUEYE_DIR)
|
||||||
|
set (IDSUEYE_DIR "/usr" 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
|
||||||
|
"${IDSUEYE_DIR}/include"
|
||||||
|
DOC "Directory containing IDS uEye include files")
|
||||||
|
endif (UNIX)
|
||||||
|
|
||||||
find_library (_uEyeLib NAMES ${_LIB_NAME}
|
find_library (_uEyeLib NAMES ${_LIB_NAME}
|
||||||
PATHS
|
PATHS
|
||||||
"${IDSUEYE_DIR}/Lib")
|
"${IDSUEYE_DIR}/Lib")
|
||||||
|
|
||||||
|
|
||||||
set (IDSUEYE_LIBRARIES ${_uEyeLib})
|
set (IDSUEYE_LIBRARIES ${_uEyeLib})
|
||||||
|
|
||||||
mark_as_advanced (_uEyeLib)
|
mark_as_advanced (_uEyeLib)
|
||||||
|
|
||||||
include (FindPackageHandleStandardArgs)
|
include (FindPackageHandleStandardArgs)
|
||||||
find_package_handle_standard_args (IDSUEYE DEFAULT_MSG IDSUEYE_INCLUDE_DIR IDSUEYE_LIBRARIES)
|
find_package_handle_standard_args (IDSUEYE DEFAULT_MSG IDSUEYE_INCLUDE_DIR IDSUEYE_LIBRARIES)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user