-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
45 lines (33 loc) · 870 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
project(QtOpenCVExample)
cmake_minimum_required(VERSION 2.6)
find_package(Qt4 REQUIRED)
find_package(OpenCV REQUIRED)
set(QT_USE_QTOPENGL TRUE)
include(${QT_USE_FILE})
add_definitions(${QT_DEFINITIONS})
set(QtOpenCVExample_SOURCES
"CustomGLWidget.cpp"
"MainWindow.cpp"
"QtOpenCVExample.cpp"
)
set(QtOpenCVExample_FORMS
"QtOpenCVExample.ui"
)
set(QtOpenCVExample_MOC_HEADERS
"CustomGLWidget.h"
"MainWindow.h"
)
qt4_wrap_ui(QtOpenCVExample_FORMS_HEADERS ${QtOpenCVExample_FORMS})
qt4_wrap_cpp(QtOpenCVExample_MOC_SOURCES ${QtOpenCVExample_MOC_HEADERS})
include_directories(
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_CURRENT_SOURCE_DIR}
)
add_executable(QtOpenCVExample
${QtOpenCVExample_SOURCES}
${QtOpenCVExample_MOC_SOURCES}
${QtOpenCVExample_FORMS_HEADERS}
)
target_link_libraries(QtOpenCVExample
${QT_LIBRARIES}
${OpenCV_LIBS})