blob: 236f74a1177f7c9f58f973a914b65737e226f977 (
plain)
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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
|
project(desktop)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTOUIC ON)
QT5_ADD_RESOURCES(RES_SOURCES res/resources.qrc)
set(RESOURCES_FOLDER ${CMAKE_BINARY_DIR}/${PROJECT_NAME}.app/Contents/Resources)
set(DATA_DIR ${OMIM_ROOT}/data)
execute_process(
COMMAND mkdir -p ${RESOURCES_FOLDER}
)
include_directories(
${OMIM_ROOT}/3party/glm
${CMAKE_CURRENT_BINARY_DIR}
)
set(
SRC
about.cpp
about.hpp
create_feature_dialog.cpp
create_feature_dialog.hpp
draw_widget.cpp
draw_widget.hpp
editor_dialog.cpp
editor_dialog.hpp
info_dialog.cpp
info_dialog.hpp
main.cpp
mainwindow.cpp
mainwindow.hpp
osm_auth_dialog.cpp
osm_auth_dialog.hpp
place_page_dialog.cpp
place_page_dialog.hpp
preferences_dialog.cpp
preferences_dialog.hpp
proxystyle.cpp
proxystyle.hpp
qtoglcontext.cpp
qtoglcontext.hpp
qtoglcontextfactory.cpp
qtoglcontextfactory.hpp
search_panel.cpp
search_panel.hpp
slider_ctrl.cpp
slider_ctrl.hpp
traffic_mode.cpp
traffic_mode.hpp
traffic_panel.cpp
traffic_panel.hpp
trafficmodeinitdlg.cpp
trafficmodeinitdlg.h
update_dialog.cpp
update_dialog.hpp
)
add_executable(${PROJECT_NAME} MACOSX_BUNDLE ${RES_SOURCES} ${SRC})
omim_link_libraries(
${PROJECT_NAME}
map
drape_frontend
routing
search
storage
tracking
traffic
indexer
drape
partners_api
platform
editor geometry
coding
base
freetype
expat
fribidi
jansson
protobuf
osrm
stats_client
minizip
succinct
pugixml
oauthcpp
opening_hours
openlr
stb_image
sdf_image
${Qt5Core_LIBRARIES}
${Qt5Gui_LIBRARIES}
${Qt5Network_LIBRARIES}
${Qt5Widgets_LIBRARIES}
${LIBZ}
)
link_qt5_core(${PROJECT_NAME})
if (PLATFORM_MAC)
target_link_libraries(
${PROJECT_NAME}
"-framework Foundation"
"-framework CoreLocation"
"-framework CoreWLAN"
"-framework SystemConfiguration"
"-framework CFNetwork"
)
set_target_properties(
${PROJECT_NAME}
PROPERTIES
MACOSX_BUNDLE_INFO_PLIST ${PROJECT_SOURCE_DIR}/res/Info.plist
)
endif()
link_opengl(${PROJECT_NAME})
link_qt5_core(${PROJECT_NAME})
function(copy_resources)
set(files "")
foreach(file ${ARGN})
execute_process(
COMMAND cp -r ${DATA_DIR}/${file} ${RESOURCES_FOLDER}
)
endforeach()
endfunction()
copy_resources(
countries-strings
resources-default
resources-mdpi_clear
cuisine-strings
eula.html
categories.txt
classificator.txt
colors.txt
copyright.html
countries.txt
countries_obsolete.txt
drules_proto_clear.bin
drules_proto_dark.bin
drules_proto_vehicle_clear.bin
drules_proto_vehicle_dark.bin
editor.config
fonts_blacklist.txt
fonts_whitelist.txt
packed_polygons.bin
packed_polygons_obsolete.bin
patterns.txt
types.txt
unicode_blocks.txt
World.mwm
WorldCoasts.mwm
WorldCoasts_obsolete.mwm
01_dejavusans.ttf
02_droidsans-fallback.ttf
03_jomolhari-id-a3d.ttf
04_padauk.ttf
05_khmeros.ttf
06_code2000.ttf
07_roboto_medium.ttf
)
|