-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathCMakeLists.txt
95 lines (81 loc) · 2.34 KB
/
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
cmake_minimum_required(VERSION 2.8.11)
project(openalpr_tagger)
SET(VERSION_MAJOR 1)
SET(VERSION_MINOR 0)
SET(VERSION_PATCH 0)
SET (VERSION "${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}")
add_definitions(-DVERSION_MAJOR=${VERSION_MAJOR})
add_definitions(-DVERSION_MINOR=${VERSION_MINOR})
add_definitions(-DVERSION_PATCH=${VERSION_PATCH})
add_definitions(-DVERSION_STRING="${VERSION}")
add_definitions(-DTARGET="openalpr_tagger")
add_definitions(-DTARGET_STRING="openalpr_tagger")
add_definitions(-DTARGET_UPPER_STRING="OPENALPR_TAGGER")
add_definitions(-DTARGET_HUMAN_STRING="openalpr_tagger")
ADD_DEFINITIONS(
-std=c++11
)
# Find the QtWidgets library
find_package(Qt5Widgets)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTOUIC ON)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
# Tell CMake to create the helloworld executable
add_executable(openalpr_tagger
about.cpp
directoryloader.cpp
dot.cpp
imagefile.cpp
imageview.cpp
imageviewerbase.cpp
imageviewerobserver.cpp
imageviewerplateselector.cpp
main.cpp
mainwindow.cpp
options.cpp
platefile.cpp
plateselector.cpp
polygons.cpp
selection.cpp
settings.cpp
squeezedlabel.cpp
threadedimageloader.cpp
utils.cpp
qprogressindicator/QProgressIndicator.cpp
extra/yaml-cpp/src/nodeevents.cpp
extra/yaml-cpp/src/exceptions.cpp
extra/yaml-cpp/src/nodebuilder.cpp
extra/yaml-cpp/src/contrib/graphbuilder.cpp
extra/yaml-cpp/src/contrib/graphbuilderadapter.cpp
extra/yaml-cpp/src/exp.cpp
extra/yaml-cpp/src/binary.cpp
extra/yaml-cpp/src/null.cpp
extra/yaml-cpp/src/parser.cpp
extra/yaml-cpp/src/convert.cpp
extra/yaml-cpp/src/scantag.cpp
extra/yaml-cpp/src/singledocparser.cpp
extra/yaml-cpp/src/scanner.cpp
extra/yaml-cpp/src/directives.cpp
extra/yaml-cpp/src/emitterstate.cpp
extra/yaml-cpp/src/node_data.cpp
extra/yaml-cpp/src/scanscalar.cpp
extra/yaml-cpp/src/scantoken.cpp
extra/yaml-cpp/src/node.cpp
extra/yaml-cpp/src/regex_yaml.cpp
extra/yaml-cpp/src/emitfromevents.cpp
extra/yaml-cpp/src/emitterutils.cpp
extra/yaml-cpp/src/tag.cpp
extra/yaml-cpp/src/memory.cpp
extra/yaml-cpp/src/simplekey.cpp
extra/yaml-cpp/src/ostream_wrapper.cpp
extra/yaml-cpp/src/emit.cpp
extra/yaml-cpp/src/emitter.cpp
extra/yaml-cpp/src/stream.cpp
extra/yaml-cpp/src/parse.cpp
)
include_directories(
${CMAKE_SOURCE_DIR}/qprogressindicator
${CMAKE_SOURCE_DIR}/extra/yaml-cpp/include/
)
# Use the Widgets module from Qt 5.
target_link_libraries(openalpr_tagger Qt5::Widgets)