Add methods in RefPointer to allow casting RefPointers of derived classes to RefPoint...
[qtgstreamer:qtgstreamer.git] / CMakeLists.txt
1 project(QtGstreamer)
2 cmake_minimum_required(VERSION 2.6)
3
4 set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules)
5 set(QT_DONT_USE_QTGUI 1)
6 set(QT_USE_QTTEST 1)
7
8 find_package(Qt4 REQUIRED)
9 find_package(Automoc4 REQUIRED)
10 find_package(Boost REQUIRED)
11 find_package(GStreamer REQUIRED)
12 find_package(GLIB2 REQUIRED)
13 find_package(GObject REQUIRED)
14 find_package(LibXml2 REQUIRED)
15 find_package(FLEX REQUIRED)
16 find_package(BISON REQUIRED)
17
18 include(${QT_USE_FILE})
19 include_directories(${GSTREAMER_INCLUDE_DIR} ${GLIB2_INCLUDE_DIR}
20                     ${LIBXML2_INCLUDE_DIR} ${Boost_INCLUDE_DIRS})
21
22 if (CMAKE_COMPILER_IS_GNUCXX)
23    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x -Wnon-virtual-dtor -Wno-long-long -Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wformat-security -fno-check-new -fno-common")
24 endif (CMAKE_COMPILER_IS_GNUCXX)
25
26 add_subdirectory(codegen)
27 add_subdirectory(src)
28 add_subdirectory(tests)
29 add_subdirectory(examples)