Rename QGst::deinit() to QGst::cleanup(). deinit is not a good name.
[qtgstreamer:qtgstreamer.git] / CMakeLists.txt
1 project(QtGstreamer)
2 cmake_minimum_required(VERSION 2.6)
3 enable_testing()
4
5 set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules)
6 set(QT_DONT_USE_QTGUI 1)
7 set(QT_USE_QTTEST 1)
8
9 find_package(Qt4 REQUIRED)
10 find_package(Automoc4 REQUIRED)
11 find_package(Boost REQUIRED)
12 find_package(GStreamer REQUIRED)
13 find_package(GLIB2 REQUIRED)
14 find_package(GObject REQUIRED)
15 find_package(LibXml2 REQUIRED)
16 find_package(FLEX REQUIRED)
17 find_package(BISON REQUIRED)
18
19 include(${QT_USE_FILE})
20 include_directories(${GSTREAMER_INCLUDE_DIR} ${GLIB2_INCLUDE_DIR}
21                     ${LIBXML2_INCLUDE_DIR} ${Boost_INCLUDE_DIRS})
22
23 if (CMAKE_COMPILER_IS_GNUCXX)
24     include(TestCXXAcceptsFlag)
25     check_cxx_accepts_flag("-std=c++0x" HAVE_CXX0X_SUPPORT)
26     if (HAVE_CXX0X_SUPPORT)
27         set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x")
28     endif()
29     set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Wformat-security -Wundef -Wpointer-arith -Wcast-align -fno-common")
30 endif ()
31
32 add_subdirectory(codegen)
33 add_subdirectory(src)
34 add_subdirectory(tests)
35 add_subdirectory(examples)