source: trunk/src/3rdparty/phonon/ds9/ConfigureChecks.cmake

Last change on this file was 2, checked in by Dmitry A. Kuminov, 17 years ago

Initially imported qt-all-opensource-src-4.5.1 from Trolltech.

File size: 1.4 KB
Line 
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
23include(CheckCXXSourceCompiles)
24
25macro_push_required_vars()
26
27set(CMAKE_REQUIRED_INCLUDES ${CMAKE_REQUIRED_INCLUDES} ${CMAKE_INCLUDE_PATH} $ENV{DXSDK_DIR} $ENV{DXSDK_DIR}/include)
28set(CMAKE_REQUIRED_LIBRARIES ${CMAKE_REQUIRED_LIBRARIES} dxguid strmiids dmoguids msdmo)
29
30CHECK_CXX_SOURCE_COMPILES(
31"#include <d3d9.h>
32#include <dshow.h>
33#include <strmif.h>
34#include <vmr9.h>
35
36int main() { }" BUILD_PHONON_DS9)
37
38macro_pop_required_vars()
39
40if (BUILD_PHONON_DS9)
41 message(STATUS "Found DirectShow 9 support: $ENV{DXSDK_DIR}")
42else (BUILD_PHONON_DS9)
43 message(STATUS "DirectShow 9 support NOT found")
44endif (BUILD_PHONON_DS9)
Note: See TracBrowser for help on using the repository browser.