|
Packit |
1fb8d4 |
# FreeRDP: A Remote Desktop Protocol Implementation
|
|
Packit |
1fb8d4 |
# FreeRDP cmake build script
|
|
Packit |
1fb8d4 |
#
|
|
Packit |
1fb8d4 |
# Copyright 2012 Marc-Andre Moreau <marcandre.moreau@gmail.com>
|
|
Packit |
1fb8d4 |
#
|
|
Packit |
1fb8d4 |
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
Packit |
1fb8d4 |
# you may not use this file except in compliance with the License.
|
|
Packit |
1fb8d4 |
# You may obtain a copy of the License at
|
|
Packit |
1fb8d4 |
#
|
|
Packit |
1fb8d4 |
# http://www.apache.org/licenses/LICENSE-2.0
|
|
Packit |
1fb8d4 |
#
|
|
Packit |
1fb8d4 |
# Unless required by applicable law or agreed to in writing, software
|
|
Packit |
1fb8d4 |
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
Packit |
1fb8d4 |
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
Packit |
1fb8d4 |
# See the License for the specific language governing permissions and
|
|
Packit |
1fb8d4 |
# limitations under the License.
|
|
Packit |
1fb8d4 |
|
|
Packit |
1fb8d4 |
define_channel("urbdrc")
|
|
Packit |
1fb8d4 |
|
|
Packit |
1fb8d4 |
if(NOT WIN32)
|
|
Packit |
1fb8d4 |
find_package(DevD)
|
|
Packit |
1fb8d4 |
find_package(UDev)
|
|
Packit |
1fb8d4 |
find_package(UUID)
|
|
Packit |
1fb8d4 |
find_package(DbusGlib)
|
|
Packit |
1fb8d4 |
find_package(libusb-1.0)
|
|
Packit |
1fb8d4 |
endif()
|
|
Packit |
1fb8d4 |
|
|
Packit |
1fb8d4 |
if(DEVD_FOUND OR UDEV_FOUND)
|
|
Packit |
1fb8d4 |
include_directories(${UDEV_INCLUDE_DIR})
|
|
Packit |
1fb8d4 |
if(UUID_FOUND AND DBUS_GLIB_FOUND AND LIBUSB_1_FOUND)
|
|
Packit |
1fb8d4 |
include_directories(${UUID_INCLUDE_DIRS})
|
|
Packit |
1fb8d4 |
include_directories(${LIBUSB_1_INCLUDE_DIRS})
|
|
Packit |
1fb8d4 |
include_directories(${DBUS_GLIB_INCLUDE_DIRS})
|
|
Packit |
1fb8d4 |
|
|
Packit |
1fb8d4 |
set(URBDRC_DEPENDENCIES_FOUND TRUE)
|
|
Packit |
1fb8d4 |
message(STATUS "Found all URBDRC dependencies")
|
|
Packit |
1fb8d4 |
else()
|
|
Packit |
1fb8d4 |
if(NOT UUID_FOUND)
|
|
Packit |
1fb8d4 |
message(STATUS "URBDRC dependencie not found: UUID")
|
|
Packit |
1fb8d4 |
endif()
|
|
Packit |
1fb8d4 |
if(NOT DBUS_GLIB_FOUND)
|
|
Packit |
1fb8d4 |
message(STATUS "URBDRC dependencie not found: DBUS_GLIB")
|
|
Packit |
1fb8d4 |
endif()
|
|
Packit |
1fb8d4 |
if(NOT LIBUSB_1_FOUND)
|
|
Packit |
1fb8d4 |
message(STATUS "URBDRC dependencie not found: LIBUSB_1")
|
|
Packit |
1fb8d4 |
endif()
|
|
Packit |
1fb8d4 |
endif()
|
|
Packit |
1fb8d4 |
endif()
|
|
Packit |
1fb8d4 |
|
|
Packit |
1fb8d4 |
if(WITH_CLIENT_CHANNELS)
|
|
Packit |
1fb8d4 |
if(URBDRC_DEPENDENCIES_FOUND)
|
|
Packit |
1fb8d4 |
add_channel_client(${MODULE_PREFIX} ${CHANNEL_NAME})
|
|
Packit |
1fb8d4 |
endif()
|
|
Packit |
1fb8d4 |
endif()
|