build: update EDT and Active Silicon Phoenix Find*.cmake to find 32- and 64-bit installations
This commit is contained in:
parent
6076fedfa9
commit
4ea20bea93
@ -1,49 +1,35 @@
|
|||||||
# - Try to find EDT API
|
# - Try to find EDT PDV
|
||||||
# Once done this will define
|
# Once done this will define
|
||||||
#
|
#
|
||||||
# EDT_FOUND - system has EDT API
|
# EDT_FOUND - system has EDT PDV
|
||||||
# EDT_INCLUDE_DIR - the EDT API include directory
|
# EDT_INCLUDE_DIR - the EDT PDV include directory
|
||||||
# EDT_LIBRARIES - the libraries needed to use the EDT API
|
# EDT_LIBRARIES - the libraries needed to use the EDT PDV
|
||||||
|
|
||||||
# Copyright (c) 2006, Tim Beaulen <tbscope@gmail.com>
|
# Copyright (c) 2006, Tim Beaulen <tbscope@gmail.com>
|
||||||
#
|
#
|
||||||
# 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 (EDT_INCLUDE_DIR AND EDT_LIBRARIES)
|
if (NOT EDT_DIR)
|
||||||
# in cache already
|
set (EDT_DIR "C:/EDT" CACHE PATH "Directory containing EDT PDV")
|
||||||
SET(EDT_FIND_QUIETLY TRUE)
|
endif (NOT EDT_DIR)
|
||||||
ELSE (EDT_INCLUDE_DIR AND EDT_LIBRARIES)
|
|
||||||
SET(EDT_FIND_QUIETLY FALSE)
|
|
||||||
ENDIF (EDT_INCLUDE_DIR AND EDT_LIBRARIES)
|
|
||||||
|
|
||||||
IF (NOT EDT_DIR)
|
find_path (EDT_INCLUDE_DIR edtinc.h
|
||||||
SET (EDT_DIR "C:/EDT" CACHE PATH "Directory containing EDT API")
|
|
||||||
ENDIF (NOT EDT_DIR)
|
|
||||||
|
|
||||||
FIND_PATH (EDT_INCLUDE_DIR edtinc.h
|
|
||||||
PATHS
|
PATHS
|
||||||
"${EDT_DIR}/pdv"
|
"${EDT_DIR}/pdv"
|
||||||
DOC "Directory containing edtinc.h include file")
|
DOC "Directory containing edtinc.h include file")
|
||||||
|
|
||||||
FIND_LIBRARY (EDT_LIBRARIES NAMES pdvlib
|
if (CMAKE_SIZEOF_VOID_P MATCHES "8")
|
||||||
|
find_library (EDT_LIBRARIES NAMES pdvlib
|
||||||
PATHS
|
PATHS
|
||||||
"${EDT_DIR}/lib"
|
"${EDT_DIR}/pdv/lib/amd64"
|
||||||
DOC "EDT library to link with")
|
DOC "EDT library to link with")
|
||||||
|
else ()
|
||||||
|
find_library (EDT_LIBRARIES NAMES pdvlib
|
||||||
|
PATHS
|
||||||
|
"${EDT_DIR}/pdv/lib/x86"
|
||||||
|
DOC "EDT library to link with")
|
||||||
|
endif ()
|
||||||
|
|
||||||
IF (EDT_INCLUDE_DIR)
|
include (FindPackageHandleStandardArgs)
|
||||||
#MESSAGE(STATUS "DEBUG: Found Euresys Multicam include dir: ${EDT_INCLUDE_DIR}")
|
find_package_handle_standard_args (EDT DEFAULT_MSG EDT_INCLUDE_DIR EDT_LIBRARIES)
|
||||||
ELSE (EDT_INCLUDE_DIR)
|
|
||||||
MESSAGE(STATUS "EDT: WARNING: include dir not found")
|
|
||||||
ENDIF (EDT_INCLUDE_DIR)
|
|
||||||
|
|
||||||
IF (EDT_LIBRARIES)
|
|
||||||
#MESSAGE(STATUS "DEBUG: Found Euresys Multicam library: ${EDT_LIBRARIES}")
|
|
||||||
ELSE (EDT_LIBRARIES)
|
|
||||||
MESSAGE(STATUS "EDT: WARNING: library not found")
|
|
||||||
ENDIF (EDT_LIBRARIES)
|
|
||||||
|
|
||||||
INCLUDE (FindPackageHandleStandardArgs)
|
|
||||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS (EDT DEFAULT_MSG EDT_INCLUDE_DIR EDT_LIBRARIES)
|
|
||||||
|
|
||||||
MARK_AS_ADVANCED(EDT_INCLUDE_DIR EDT_LIBRARIES)
|
|
||||||
@ -8,46 +8,30 @@
|
|||||||
# 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.
|
||||||
|
|
||||||
# TODO: properly handle 32-/64-bit differences, and Linux
|
if (NOT PHOENIX_DIR)
|
||||||
|
message(WARNING "PHOENIX: WARNING: PHOENIX_DIR not set, set to dir SDKX.XX where X.XX is the version")
|
||||||
|
endif (NOT PHOENIX_DIR)
|
||||||
|
|
||||||
IF (PHOENIX_INCLUDE_DIR AND PHOENIX_LIBRARIES)
|
find_path(PHOENIX_INCLUDE_DIR phx_api.h
|
||||||
# in cache already
|
|
||||||
SET(PHOENIX_FIND_QUIETLY TRUE)
|
|
||||||
ELSE (PHOENIX_INCLUDE_DIR AND PHOENIX_LIBRARIES)
|
|
||||||
SET(PHOENIX_FIND_QUIETLY FALSE)
|
|
||||||
ENDIF (PHOENIX_INCLUDE_DIR AND PHOENIX_LIBRARIES)
|
|
||||||
|
|
||||||
IF (NOT PHOENIX_DIR)
|
|
||||||
SET (PHOENIX_DIR "C:/Program Files (x86)/Active Silicon/Phoenix/Win/SDK5.83" CACHE PATH "Directory containing the Active Silicon Phoenix SDK")
|
|
||||||
ENDIF (NOT PHOENIX_DIR)
|
|
||||||
|
|
||||||
FIND_PATH (PHOENIX_INCLUDE_DIR phx_api.h
|
|
||||||
PATHS
|
PATHS
|
||||||
"${PHOENIX_DIR}/Include"
|
"${PHOENIX_DIR}/Include"
|
||||||
"C:/Program Files (x86)/Active Silicon/Phoenix/Win/SDK5.83/Include"
|
|
||||||
"C:/Program Files/Active Silicon/Phoenix/Win/SDK5.83/Include"
|
|
||||||
DOC "Directory containing phx_api.h include file")
|
DOC "Directory containing phx_api.h include file")
|
||||||
|
|
||||||
FIND_LIBRARY (PHOENIX_LIBRARIES NAMES phxlw32
|
if (CMAKE_SIZEOF_VOID_P MATCHES "8")
|
||||||
|
find_library(PHOENIX_LIBRARIES NAMES phxlx64
|
||||||
|
PATHS
|
||||||
|
"${PHOENIX_DIR}/Lib/win64"
|
||||||
|
DOC "PHOENIX library to link with")
|
||||||
|
elseif ()
|
||||||
|
find_library(PHOENIX_LIBRARIES NAMES phxlw32
|
||||||
PATHS
|
PATHS
|
||||||
"${PHOENIX_DIR}/Lib/win32"
|
"${PHOENIX_DIR}/Lib/win32"
|
||||||
"C:/Program Files (x86)/Active Silicon/Phoenix/Win/SDK5.83/Lib/win32"
|
|
||||||
"C:/Program Files/Active Silicon/Phoenix/Win/SDK5.83/Lib/win32"
|
|
||||||
DOC "PHOENIX library to link with")
|
DOC "PHOENIX library to link with")
|
||||||
|
endif()
|
||||||
|
|
||||||
IF (PHOENIX_INCLUDE_DIR)
|
if (NOT PHOENIX_INCLUDE_DIR)
|
||||||
#MESSAGE(STATUS "DEBUG: Found Active Silicon Phoenix include dir: ${PHOENIX_INCLUDE_DIR}")
|
message(WARNING "PHOENIX: WARNING: not found, make sure PHOENIX_DIR is set to dir SDKX.XX")
|
||||||
ELSE (PHOENIX_INCLUDE_DIR)
|
endif ()
|
||||||
MESSAGE(STATUS "PHOENIX: WARNING: include dir not found")
|
|
||||||
ENDIF (PHOENIX_INCLUDE_DIR)
|
|
||||||
|
|
||||||
IF (PHOENIX_LIBRARIES)
|
include(FindPackageHandleStandardArgs)
|
||||||
#MESSAGE(STATUS "DEBUG: Found Active Silicon Phoenix library: ${PHOENIX_LIBRARIES}")
|
find_package_handle_standard_args(PHOENIX DEFAULT_MSG PHOENIX_INCLUDE_DIR PHOENIX_LIBRARIES)
|
||||||
ELSE (PHOENIX_LIBRARIES)
|
|
||||||
MESSAGE(STATUS "PHOENIX: WARNING: library not found")
|
|
||||||
ENDIF (PHOENIX_LIBRARIES)
|
|
||||||
|
|
||||||
INCLUDE (FindPackageHandleStandardArgs)
|
|
||||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS (PHOENIX DEFAULT_MSG PHOENIX_INCLUDE_DIR PHOENIX_LIBRARIES)
|
|
||||||
|
|
||||||
MARK_AS_ADVANCED(PHOENIX_INCLUDE_DIR PHOENIX_LIBRARIES)
|
|
||||||
Loading…
x
Reference in New Issue
Block a user