blob: 96f608ff7e432a237969af21d73c952926ed5364 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
project(qtgst-example-voip)
if (NOT BUILDING_QTGSTREAMER)
set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/../../cmake/modules)
find_package(Qt4or5 COMPONENTS Core Gui Widgets REQUIRED)
if (${QT_VERSION} STREQUAL "5")
find_package(Qt5GStreamer REQUIRED)
else()
find_package(QtGStreamer REQUIRED)
endif()
set(CMAKE_AUTOMOC ON)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
endif()
include_directories(${QTGSTREAMER_INCLUDES})
add_definitions(${QTGSTREAMER_DEFINITIONS})
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${QTGSTREAMER_FLAGS}")
qt4or5_wrap_ui(voip_UI_SRCS voip.ui)
add_executable(voip main.cpp ${voip_UI_SRCS})
target_link_libraries(voip ${QTGSTREAMER_UI_LIBRARIES})
qt4or5_use_modules(voip Core Gui Widgets)
|