0
|
1 |
# Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
|
|
2 |
#
|
|
3 |
# This library is free software: you can redistribute it and/or modify
|
|
4 |
# it under the terms of the GNU Lesser General Public License as published by
|
|
5 |
# the Free Software Foundation, either version 2 or 3 of the License.
|
|
6 |
#
|
|
7 |
# This library is distributed in the hope that it will be useful,
|
|
8 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
9 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
10 |
# GNU Lesser General Public License for more details.
|
|
11 |
#
|
|
12 |
# You should have received a copy of the GNU Lesser General Public License
|
|
13 |
# along with this library. If not, see <http://www.gnu.org/licenses/>.
|
|
14 |
|
|
15 |
# We must find:
|
|
16 |
# $DXSDK_DIR/include/d3d9.h
|
|
17 |
# $DXDSK_DIR/$LIB/dxguid.lib
|
|
18 |
# vmr9.h
|
|
19 |
# dshow.h
|
|
20 |
# strmiids.lib
|
|
21 |
# dmoguids.lib
|
|
22 |
# msdmo.lib
|
|
23 |
include(CheckCXXSourceCompiles)
|
|
24 |
|
|
25 |
macro_push_required_vars()
|
|
26 |
|
|
27 |
set(CMAKE_REQUIRED_INCLUDES ${CMAKE_REQUIRED_INCLUDES} ${CMAKE_INCLUDE_PATH} $ENV{DXSDK_DIR} $ENV{DXSDK_DIR}/include)
|
|
28 |
set(CMAKE_REQUIRED_LIBRARIES ${CMAKE_REQUIRED_LIBRARIES} dxguid strmiids dmoguids msdmo)
|
|
29 |
|
|
30 |
CHECK_CXX_SOURCE_COMPILES(
|
|
31 |
"#include <d3d9.h>
|
|
32 |
#include <dshow.h>
|
|
33 |
#include <strmif.h>
|
|
34 |
#include <vmr9.h>
|
|
35 |
|
|
36 |
int main() { }" BUILD_PHONON_DS9)
|
|
37 |
|
|
38 |
macro_pop_required_vars()
|
|
39 |
|
|
40 |
if (BUILD_PHONON_DS9)
|
|
41 |
message(STATUS "Found DirectShow 9 support: $ENV{DXSDK_DIR}")
|
|
42 |
else (BUILD_PHONON_DS9)
|
|
43 |
message(STATUS "DirectShow 9 support NOT found")
|
|
44 |
endif (BUILD_PHONON_DS9)
|