build: update EDT and Active Silicon Phoenix Find*.cmake to find 32- and 64-bit installations
This commit is contained in:
@@ -1,49 +1,35 @@
|
||||
# - Try to find EDT API
|
||||
# - Try to find EDT PDV
|
||||
# Once done this will define
|
||||
#
|
||||
# EDT_FOUND - system has EDT API
|
||||
# EDT_INCLUDE_DIR - the EDT API include directory
|
||||
# EDT_LIBRARIES - the libraries needed to use the EDT API
|
||||
# EDT_FOUND - system has EDT PDV
|
||||
# EDT_INCLUDE_DIR - the EDT PDV include directory
|
||||
# EDT_LIBRARIES - the libraries needed to use the EDT PDV
|
||||
|
||||
# Copyright (c) 2006, Tim Beaulen <tbscope@gmail.com>
|
||||
#
|
||||
# Redistribution and use is allowed according to the terms of the BSD license.
|
||||
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
|
||||
|
||||
IF (EDT_INCLUDE_DIR AND EDT_LIBRARIES)
|
||||
# in cache already
|
||||
SET(EDT_FIND_QUIETLY TRUE)
|
||||
ELSE (EDT_INCLUDE_DIR AND EDT_LIBRARIES)
|
||||
SET(EDT_FIND_QUIETLY FALSE)
|
||||
ENDIF (EDT_INCLUDE_DIR AND EDT_LIBRARIES)
|
||||
if (NOT EDT_DIR)
|
||||
set (EDT_DIR "C:/EDT" CACHE PATH "Directory containing EDT PDV")
|
||||
endif (NOT EDT_DIR)
|
||||
|
||||
IF (NOT EDT_DIR)
|
||||
SET (EDT_DIR "C:/EDT" CACHE PATH "Directory containing EDT API")
|
||||
ENDIF (NOT EDT_DIR)
|
||||
|
||||
FIND_PATH (EDT_INCLUDE_DIR edtinc.h
|
||||
find_path (EDT_INCLUDE_DIR edtinc.h
|
||||
PATHS
|
||||
"${EDT_DIR}/pdv"
|
||||
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
|
||||
"${EDT_DIR}/lib"
|
||||
"${EDT_DIR}/pdv/lib/amd64"
|
||||
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)
|
||||
#MESSAGE(STATUS "DEBUG: Found Euresys Multicam include dir: ${EDT_INCLUDE_DIR}")
|
||||
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)
|
||||
include (FindPackageHandleStandardArgs)
|
||||
find_package_handle_standard_args (EDT DEFAULT_MSG EDT_INCLUDE_DIR EDT_LIBRARIES)
|
||||
Reference in New Issue
Block a user