aboutsummaryrefslogtreecommitdiffstats
path: root/PySide/phonon/CMakeLists.txt
diff options
context:
space:
mode:
authorRenato Araujo Oliveira Filho <renato.filho@openbossa.org>2011-02-09 18:05:20 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-08 16:53:55 -0300
commit8cb71269c6273133710cfee3759cbbbf20ec6292 (patch)
tree92ea9d2cbe2cf232f1b12e628b1b8b6f7e6af6e2 /PySide/phonon/CMakeLists.txt
parent8c29de6075710febdeafaa8c3c78d6c085d5f757 (diff)
Updated phonon typesystem to use the new pyside cmake macro syntax.
Diffstat (limited to 'PySide/phonon/CMakeLists.txt')
-rw-r--r--PySide/phonon/CMakeLists.txt8
1 files changed, 6 insertions, 2 deletions
diff --git a/PySide/phonon/CMakeLists.txt b/PySide/phonon/CMakeLists.txt
index 0452d1b0..a3f32d22 100644
--- a/PySide/phonon/CMakeLists.txt
+++ b/PySide/phonon/CMakeLists.txt
@@ -44,7 +44,11 @@ ${CMAKE_CURRENT_BINARY_DIR}/PySide/phonon/phonon_wrapper.cpp
${CMAKE_CURRENT_BINARY_DIR}/PySide/phonon/phonon_backendcapabilities_notifierwrapper_wrapper.cpp
)
-check_qt_class("phonon" "VideoCaptureDevice" phonon_SRC "Phonon" "ObjectDescription")
+set(TARGET_TYPESYSTEM "${CMAKE_CURRENT_BINARY_DIR}/typesystem_phonon.xml")
+configure_file("${CMAKE_CURRENT_SOURCE_DIR}/typesystem_phonon.xml"
+ "${TARGET_TYPESYSTEM}" @ONLY)
+
+check_qt_class("phonon" "VideoCaptureDevice" phonon_SRC ${TARGET_TYPESYSTEM} "Phonon" "ObjectDescription")
set(phonon_typesystem_path "${QtCore_SOURCE_DIR}${PATH_SEP}${QtGui_SOURCE_DIR}${PATH_SEP}${phonon_SOURCE_DIR}${PATH_SEP}${QtGui_BINARY_DIR}")
set(phonon_include_dirs ${CMAKE_CURRENT_SOURCE_DIR}
@@ -70,4 +74,4 @@ create_pyside_module(phonon
phonon_deps
phonon_typesystem_path
phonon_SRC
- "")
+ ${TARGET_TYPESYSTEM})