-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
31 lines (23 loc) · 940 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
project(QtVideoWriter)
cmake_minimum_required(VERSION 2.8)
SET(SOURCES src/FFmpegLauncher.cpp
src/ImageWriter.cpp)
SET(HEADERS FFmpegLauncher.h
ImageWriter.h
VideoWriter.h)
SET(SAMPLE_FILES sample/main.cpp
sample/SigKillHandler.h
sample/SigKillHandler.cpp)
FIND_PACKAGE(Qt4 REQUIRED)
SET(QT_USE_QTNETWORK true)
INCLUDE(${QT_USE_FILE})
ADD_DEFINITIONS(${QT_DEFINITIONS})
ADD_DEFINITIONS(-DQT_NO_KEYWORDS)
QT4_ADD_RESOURCES(RESOURCES_MOC "sample/resources/sample.qrc")
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
add_library(video_writer ${SOURCES} ${HEADERS})
set_target_properties(video_writer PROPERTIES AUTOMOC true)
target_link_libraries(video_writer)
add_executable(video_writer-main ${SAMPLE_FILES} ${RESOURCES_MOC})
target_link_libraries(video_writer-main video_writer ${QT_LIBRARIES})
set_target_properties(video_writer-main PROPERTIES AUTOMOC true)