CMakeLists.txt 17.2 KB
Newer Older
1
################################################################################
2
# CMakeLists.txt
3
# Copyright (C) 2017-2018  Belledonne Communications, Grenoble France
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
#
################################################################################
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
#
################################################################################
22

Ronan's avatar
Ronan committed
23
cmake_minimum_required(VERSION 3.1)
Ghislain MARY's avatar
Ghislain MARY committed
24
project(linphoneqt VERSION 4.1.1)
25

26
set(APP_LIBRARY app-library)
27
include(application_info.cmake)
Ronan's avatar
Ronan committed
28 29 30

# ------------------------------------------------------------------------------

31
set(TARGET_NAME linphone-qt)
32

33
set(CMAKE_CXX_STANDARD 11)
34

35
set(ASSETS_DIR "assets")
36

37 38
option(ENABLE_UPDATE_CHECK "Enable update check." NO)

39
include(GNUInstallDirs)
40
include(CheckCXXCompilerFlag)
41

42 43 44 45
# Use automatically moc from Qt5.
set(CMAKE_AUTOMOC ON)
set(CMAKE_INCLUDE_CURRENT_DIR ON)

46 47 48 49 50
# Avoid cmake warning if CMP0071 is not set.
if (POLICY CMP0071)
  cmake_policy(SET CMP0071 NEW)
endif ()

51
if (NOT WIN32)
52 53
  check_cxx_compiler_flag("-Wsuggest-override" SUGGEST_OVERRIDE)
  set(CUSTOM_FLAGS "\
Ronan's avatar
Ronan committed
54
-Wall \
55 56
-Wcast-align \
-Wconversion \
57
-Werror=old-style-cast \
58
-Werror=return-type \
59 60 61
-Wextra \
-Wfloat-equal \
-Winit-self \
62
-Wnon-virtual-dtor \
63 64
-Woverloaded-virtual \
-Wpointer-arith \
65
-Wsign-conversion \
66 67 68
-Wuninitialized \
-Wunused \
")
69
  if (NOT CMAKE_CXX_COMPILER_ID MATCHES "Clang")
70
    set(CUSTOM_FLAGS "${CUSTOM_FLAGS} -Wlogical-op")
71 72
  endif ()
  if (SUGGEST_OVERRIDE)
73
    set(CUSTOM_FLAGS "${CUSTOM_FLAGS} -Wsuggest-override -Werror=suggest-override")
74 75
  endif ()
endif ()
76

77 78
set(CUSTOM_FLAGS "${CUSTOM_FLAGS} -DQT_NO_EXCEPTIONS")

79
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CUSTOM_FLAGS}")
80
# See: http://stackoverflow.com/a/1372836
81
if (WIN32)
82
  set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D_WINSOCKAPI_")
83
endif ()
84

85 86 87
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -DNDEBUG -DQT_NO_DEBUG")
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -DDEBUG -DQT_QML_DEBUG -DQT_DECLARATIVE_DEBUG")

Ronan's avatar
Ronan committed
88 89 90
# ------------------------------------------------------------------------------
# Define packages, libs, sources, headers, resources and languages.
# ------------------------------------------------------------------------------
91

92
set(QT5_PACKAGES Core Gui Quick Widgets QuickControls2 Svg LinguistTools Concurrent Network)
93
if (UNIX AND NOT APPLE)
94 95
  list(APPEND QT5_PACKAGES DBus)
endif ()
96
set(QT5_PACKAGES_OPTIONAL TextToSpeech)
97

Ghislain MARY's avatar
Ghislain MARY committed
98 99
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")

100
if (LINPHONE_BUILDER_GROUP_EXTERNAL_SOURCE_PATH_BUILDERS)
101
  include("${EP_linphone_CONFIG_DIR}/wrappers/cpp/LinphoneCxxConfig.cmake")
102
  include("${EP_bctoolbox_CONFIG_DIR}/BcToolboxConfig.cmake")
103
  include("${EP_belcard_CONFIG_DIR}/BelcardConfig.cmake")
104
  include("${EP_ms2_CONFIG_DIR}/Mediastreamer2Config.cmake")
105
else ()
106 107 108
  find_package(LinphoneCxx REQUIRED)
  find_package(BcToolbox REQUIRED)
  find_package(Belcard REQUIRED)
109
  find_package(Mediastreamer2 REQUIRED)
110
endif ()
111
find_package(Minizip REQUIRED)
jehan's avatar
jehan committed
112

113
set(SOURCES
114
  src/app/App.cpp
115
  src/app/AppController.cpp
116
  src/app/cli/Cli.cpp
117 118 119
  src/app/logger/Logger.cpp
  src/app/paths/Paths.cpp
  src/app/providers/AvatarProvider.cpp
120
  src/app/providers/ImageProvider.cpp
121 122
  src/app/providers/ThumbnailProvider.cpp
  src/app/translator/DefaultTranslator.cpp
123
  src/components/assistant/AssistantModel.cpp
124
  src/components/authentication/AuthenticationNotifier.cpp
Ronan's avatar
Ronan committed
125 126
  src/components/call/CallModel.cpp
  src/components/calls/CallsListModel.cpp
127
  src/components/calls/CallsListProxyModel.cpp
128
  src/components/camera/Camera.cpp
129
  src/components/camera/CameraPreview.cpp
130
  src/components/camera/MSFunctions.cpp
131
  src/components/chat/ChatModel.cpp
Ronan's avatar
Ronan committed
132
  src/components/chat/ChatProxyModel.cpp
133
  src/components/codecs/AbstractCodecsModel.cpp
134 135
  src/components/codecs/AudioCodecsModel.cpp
  src/components/codecs/VideoCodecsModel.cpp
136
  src/components/conference/ConferenceAddModel.cpp
137
  src/components/conference/ConferenceHelperModel.cpp
138
  src/components/conference/ConferenceModel.cpp
Ronan's avatar
Ronan committed
139 140
  src/components/contact/ContactModel.cpp
  src/components/contact/VcardModel.cpp
141 142
  src/components/contacts/ContactsListModel.cpp
  src/components/contacts/ContactsListProxyModel.cpp
Ronan's avatar
Ronan committed
143
  src/components/core/CoreHandlers.cpp
Ronan's avatar
Ronan committed
144
  src/components/core/CoreManager.cpp
145
  src/components/core/messages-count-notifier/AbstractMessageCountNotifier.cpp
146
  src/components/file/FileDownloader.cpp
147
  src/components/file/FileExtractor.cpp
148
  src/components/notifier/Notifier.cpp
149
  src/components/other/clipboard/Clipboard.cpp
150
  src/components/other/colors/Colors.cpp
151 152
  src/components/other/text-to-speech/TextToSpeech.cpp
  src/components/other/units/Units.cpp
153
  src/components/presence/OwnPresenceModel.cpp
Ghislain MARY's avatar
Ghislain MARY committed
154
  src/components/presence/Presence.cpp
155 156
  src/components/settings/AccountSettingsModel.cpp
  src/components/settings/SettingsModel.cpp
157
  src/components/sip-addresses/SipAddressesModel.cpp
158
  src/components/sip-addresses/SipAddressesProxyModel.cpp
159
  src/components/sip-addresses/SipAddressObserver.cpp
160
  src/components/sound-player/SoundPlayer.cpp
161
  src/components/telephone-numbers/TelephoneNumbersModel.cpp
162
  src/components/timeline/TimelineModel.cpp
163
  src/components/url-handlers/UrlHandlers.cpp
164
  src/utils/LinphoneUtils.cpp
165
  src/utils/QExifImageHeader.cpp
166
  src/utils/Utils.cpp
167 168 169
)

set(HEADERS
170
  src/app/App.hpp
171
  src/app/AppController.hpp
172
  src/app/cli/Cli.hpp
173 174 175
  src/app/logger/Logger.hpp
  src/app/paths/Paths.hpp
  src/app/providers/AvatarProvider.hpp
176
  src/app/providers/ImageProvider.hpp
177
  src/app/providers/ThumbnailProvider.hpp
178
  src/app/single-application/SingleApplication.hpp
179
  src/app/translator/DefaultTranslator.hpp
180
  src/components/assistant/AssistantModel.hpp
181
  src/components/authentication/AuthenticationNotifier.hpp
Ronan's avatar
Ronan committed
182 183
  src/components/call/CallModel.hpp
  src/components/calls/CallsListModel.hpp
184
  src/components/calls/CallsListProxyModel.hpp
185
  src/components/camera/Camera.hpp
186
  src/components/camera/CameraPreview.hpp
187
  src/components/camera/MSFunctions.hpp
188
  src/components/chat/ChatModel.hpp
Ronan's avatar
Ronan committed
189
  src/components/chat/ChatProxyModel.hpp
190 191 192
  src/components/codecs/AbstractCodecsModel.hpp
  src/components/codecs/AudioCodecsModel.hpp
  src/components/codecs/VideoCodecsModel.hpp
193
  src/components/Components.hpp
194
  src/components/conference/ConferenceAddModel.hpp
195
  src/components/conference/ConferenceHelperModel.hpp
196
  src/components/conference/ConferenceModel.hpp
Ronan's avatar
Ronan committed
197 198
  src/components/contact/ContactModel.hpp
  src/components/contact/VcardModel.hpp
199 200
  src/components/contacts/ContactsListModel.hpp
  src/components/contacts/ContactsListProxyModel.hpp
Ronan's avatar
Ronan committed
201
  src/components/core/CoreHandlers.hpp
Ronan's avatar
Ronan committed
202
  src/components/core/CoreManager.hpp
203
  src/components/core/messages-count-notifier/AbstractMessageCountNotifier.hpp
204
  src/components/file/FileDownloader.hpp
205
  src/components/file/FileExtractor.hpp
206
  src/components/notifier/Notifier.hpp
207
  src/components/other/clipboard/Clipboard.hpp
208
  src/components/other/colors/Colors.hpp
209
  src/components/other/desktop-tools/DesktopTools.hpp
210 211
  src/components/other/text-to-speech/TextToSpeech.hpp
  src/components/other/units/Units.hpp
212
  src/components/presence/OwnPresenceModel.hpp
213 214 215
  src/components/presence/Presence.hpp
  src/components/settings/AccountSettingsModel.hpp
  src/components/settings/SettingsModel.hpp
216
  src/components/sip-addresses/SipAddressesModel.hpp
217
  src/components/sip-addresses/SipAddressesProxyModel.hpp
218
  src/components/sip-addresses/SipAddressObserver.hpp
219
  src/components/sound-player/SoundPlayer.hpp
220
  src/components/telephone-numbers/TelephoneNumbersModel.hpp
221
  src/components/timeline/TimelineModel.hpp
222
  src/components/url-handlers/UrlHandlers.hpp
223
  src/utils/LinphoneUtils.hpp
224
  src/utils/QExifImageHeader.hpp
225
  src/utils/Utils.hpp
226 227
)

228 229
set(MAIN_FILE src/app/main.cpp)

230
if (APPLE)
231
  list(APPEND SOURCES
232
    src/app/single-application/SingleApplication.cpp
233
    src/components/core/messages-count-notifier/MessageCountNotifierMacOs.m
234
    src/components/other/desktop-tools/DesktopToolsMacOs.cpp
235
    src/components/other/desktop-tools/screen-saver/ScreenSaverMacOs.m
236 237
  )
  list(APPEND HEADERS
238
    src/app/single-application/SingleApplicationPrivate.hpp
239
    src/components/core/messages-count-notifier/MessageCountNotifierMacOs.hpp
240 241 242 243
    src/components/other/desktop-tools/DesktopToolsMacOs.hpp
  )
elseif (WIN32)
  list(APPEND SOURCES
244
    src/app/single-application/SingleApplication.cpp
245
    src/components/core/messages-count-notifier/MessageCountNotifierSystemTrayIcon.cpp
246 247 248
    src/components/other/desktop-tools/DesktopToolsWindows.cpp
  )
  list(APPEND HEADERS
249
    src/app/single-application/SingleApplicationPrivate.hpp
250
    src/components/core/messages-count-notifier/MessageCountNotifierSystemTrayIcon.hpp
251 252
    src/components/other/desktop-tools/DesktopToolsWindows.hpp
  )
253
else ()
254
  list(APPEND SOURCES
255
    src/app/single-application/SingleApplicationDBus.cpp
256
    src/components/core/messages-count-notifier/MessageCountNotifierSystemTrayIcon.cpp
257
    src/components/other/desktop-tools/DesktopToolsLinux.cpp
258 259
    src/components/other/desktop-tools/screen-saver/ScreenSaverDBus.cpp
    src/components/other/desktop-tools/screen-saver/ScreenSaverXdg.cpp
260 261
  )
  list(APPEND HEADERS
262
    src/app/single-application/SingleApplicationDBusPrivate.hpp
263
    src/components/core/messages-count-notifier/MessageCountNotifierSystemTrayIcon.hpp
264
    src/components/other/desktop-tools/DesktopToolsLinux.hpp
265 266
    src/components/other/desktop-tools/screen-saver/ScreenSaverDBus.hpp
    src/components/other/desktop-tools/screen-saver/ScreenSaverXdg.hpp
267
  )
268 269
endif ()

Ronan's avatar
Ronan committed
270
set(QRC_RESOURCES resources.qrc)
271

272
set(LANGUAGES_DIRECTORY "${ASSETS_DIR}/languages")
273
set(I18N_FILENAME i18n.qrc)
274
set(LANGUAGES de en fr_FR ja lt ru sv tr pt_BR)
275

Ronan's avatar
Ronan committed
276
# ------------------------------------------------------------------------------
277

278 279
function (PREPEND list prefix)
  set(new_list "")
280

281 282 283
  foreach (elem ${${list}})
    list(APPEND new_list "${prefix}${elem}")
  endforeach ()
284

285 286 287 288
  set(${list} ${new_list} PARENT_SCOPE)
endfunction ()

# Force absolute paths.
289 290 291
PREPEND(SOURCES "${CMAKE_CURRENT_SOURCE_DIR}/")
PREPEND(HEADERS "${CMAKE_CURRENT_SOURCE_DIR}/")
PREPEND(QRC_RESOURCES "${CMAKE_CURRENT_SOURCE_DIR}/")
292

Ronan's avatar
Ronan committed
293
# ------------------------------------------------------------------------------
294
# Compute QML files list.
Ronan's avatar
Ronan committed
295
# ------------------------------------------------------------------------------
296 297 298 299 300 301

set(QML_SOURCES)
file(STRINGS ${QRC_RESOURCES} QRC_RESOURCES_CONTENT)
foreach (line ${QRC_RESOURCES_CONTENT})
  set(result)
  string(REGEX REPLACE
Ronan's avatar
Ronan committed
302
    "^[ \t]*<[ \t]*file[ \t]*>[ \t]*(.+\\.[a-z]+)[ \t]*<[ \t]*/[ \t]*file[ \t]*>[ \t]*$"
303 304
    "\\1"
    result
305 306
    "${line}"
  )
307 308
  string(REGEX MATCH "\\.[a-z]+$" is_ui ${result})
  if (NOT ${is_ui} STREQUAL "")
309
    list(APPEND QML_SOURCES "${CMAKE_CURRENT_SOURCE_DIR}/${result}")
310 311 312
  endif ()
endforeach ()

313 314 315 316 317
# ------------------------------------------------------------------------------
# Init git hooks.
# ------------------------------------------------------------------------------

if (NOT WIN32)
Ghislain MARY's avatar
Ghislain MARY committed
318 319
  add_custom_target(
    check_qml DEPENDS ${QML_SOURCES}
320
    COMMAND "${CMAKE_CURRENT_SOURCE_DIR}/tools/check_qml_syntax"
Ghislain MARY's avatar
Ghislain MARY committed
321
  )
322
endif ()
323 324

execute_process(COMMAND ${CMAKE_COMMAND} -E copy
325
  "${CMAKE_CURRENT_SOURCE_DIR}/tools/private/pre-commit"
326
  "${CMAKE_CURRENT_SOURCE_DIR}/.git/hooks/pre-commit"
327 328
)

329 330 331 332 333
# ------------------------------------------------------------------------------
# Create config.h file
# ------------------------------------------------------------------------------

set(MSPLUGINS_DIR "${CMAKE_INSTALL_LIBDIR}/mediastreamer/plugins")
334
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/src/config.h.cmake" "${CMAKE_CURRENT_BINARY_DIR}/config.h")
335

Ronan's avatar
Ronan committed
336
# ------------------------------------------------------------------------------
337
# Build.
Ronan's avatar
Ronan committed
338
# ------------------------------------------------------------------------------
339

340 341
include_directories(src/)

342
find_package(Qt5 COMPONENTS ${QT5_PACKAGES} REQUIRED)
343
find_package(Qt5 COMPONENTS ${QT5_PACKAGES_OPTIONAL} QUIET)
344

345
if (CMAKE_INSTALL_RPATH)
346 347 348 349
  get_target_property(LUPDATE_PATH Qt5::lupdate LOCATION)
  get_filename_component(LUPDATE_PATH "${LUPDATE_PATH}" DIRECTORY)
  get_filename_component(QT_PATH "${LUPDATE_PATH}/../lib" ABSOLUTE)
  list(APPEND CMAKE_INSTALL_RPATH "${QT_PATH}")
350
endif ()
351

352 353
# Add languages support.
add_subdirectory(${LANGUAGES_DIRECTORY})
354
list(APPEND QRC_RESOURCES "${CMAKE_CURRENT_BINARY_DIR}/${LANGUAGES_DIRECTORY}/${I18N_FILENAME}")
355 356

# Add qrc. (images, qml, translations...)
357
qt5_add_resources(RESOURCES ${QRC_RESOURCES})
358 359

# Build.
360 361 362 363 364 365 366
add_library(${APP_LIBRARY} OBJECT ${SOURCES} ${HEADERS} ${RESOURCES} ${QML_SOURCES})
set_property(TARGET ${APP_LIBRARY} PROPERTY POSITION_INDEPENDENT_CODE ON)

bc_git_version(${TARGET_NAME} ${PROJECT_VERSION})
add_dependencies(${APP_LIBRARY} ${TARGET_NAME}-git-version)
add_dependencies(${APP_LIBRARY} update_translations)

367
if (WIN32)
368
  add_executable(${TARGET_NAME} WIN32 $<TARGET_OBJECTS:${APP_LIBRARY}> ${ASSETS_DIR}/app-icon.rc ${MAIN_FILE})
369
else ()
370
  add_executable(${TARGET_NAME} $<TARGET_OBJECTS:${APP_LIBRARY}> ${MAIN_FILE})
371
endif ()
372

373
if (NOT WIN32)
Ghislain MARY's avatar
Ghislain MARY committed
374
  add_dependencies(update_translations check_qml)
375
endif ()
376
set_target_properties(${TARGET_NAME} PROPERTIES OUTPUT_NAME "${EXECUTABLE_NAME}")
377

Ghislain MARY's avatar
Ghislain MARY committed
378 379
set(INCLUDED_DIRECTORIES "${LINPHONECXX_INCLUDE_DIRS}" "${BELCARD_INCLUDE_DIRS}" "${BCTOOLBOX_INCLUDE_DIRS}" "${MEDIASTREAMER2_INCLUDE_DIRS}" "${MINIZIP_INCLUDE_DIRS}")
set(LIBRARIES ${BCTOOLBOX_CORE_LIBRARIES} ${BELCARD_LIBRARIES} ${LINPHONECXX_LIBRARIES} ${MINIZIP_LIBRARIES})
380

381
foreach (package ${QT5_PACKAGES})
382
  list(APPEND INCLUDED_DIRECTORIES "${Qt5${package}_INCLUDE_DIRS}")
383 384 385
  # `qt5_create_translation` is provided from `LinguistTools` package.
  # But the `Qt5::LinguistTools` lib does not exist. Remove it.
  if (NOT (${package} STREQUAL LinguistTools))
386
    list(APPEND LIBRARIES ${Qt5${package}_LIBRARIES})
387 388 389 390 391 392
  endif ()
endforeach ()

foreach (package ${QT5_PACKAGES_OPTIONAL})
  if ("${Qt5${package}_FOUND}")
    message("Optional package ${package} found.")
393 394
    list(APPEND INCLUDED_DIRECTORIES "${Qt5${package}_INCLUDE_DIRS}")
    list(APPEND LIBRARIES ${Qt5${package}_LIBRARIES})
395 396

    string(TOUPPER "${package}" INCLUDE_NAME)
397
    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D${INCLUDE_NAME}_ENABLED")
398 399 400
  else ()
    message("Optional package ${package} not found.")
  endif ()
401
endforeach ()
Ronan's avatar
Ronan committed
402

403
if (APPLE)
404
  list(APPEND LIBRARIES "-framework Cocoa -framework IOKit")
405
endif ()
406

407 408 409 410 411
target_include_directories(${APP_LIBRARY} SYSTEM PRIVATE ${INCLUDED_DIRECTORIES})
target_include_directories(${TARGET_NAME} SYSTEM PRIVATE ${INCLUDED_DIRECTORIES})

target_link_libraries(${TARGET_NAME} ${LIBRARIES})

412
foreach (target ${TARGET_NAME})
413 414 415 416 417 418 419
  install(TARGETS ${target}
    RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
    LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
    ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
    PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE
  )
endforeach ()
420

Ronan's avatar
Ronan committed
421 422
if (UNIX AND NOT APPLE)
  # Install desktop/icon files.
423
  configure_file("${ASSETS_DIR}/linphone.desktop.cmake" "${EXECUTABLE_NAME}.desktop" @ONLY)
Ronan's avatar
Ronan committed
424 425 426 427

  install(FILES "${CMAKE_CURRENT_BINARY_DIR}/${EXECUTABLE_NAME}.desktop"
    DESTINATION "${CMAKE_INSTALL_DATADIR}/applications"
  )
428
  install(FILES "${ASSETS_DIR}/images/app_logo.svg"
Ronan's avatar
Ronan committed
429 430 431
    DESTINATION "${CMAKE_INSTALL_DATADIR}/icons/hicolor/scalable/apps/"
    RENAME "${EXECUTABLE_NAME}.svg"
  )
432

Ronan's avatar
Ronan committed
433 434
  set(ICON_DIRS 16x16 22x22 24x24 32x32 64x64 128x128)
  foreach (DIR ${ICON_DIRS})
435
    install(FILES "${ASSETS_DIR}/icons/hicolor/${DIR}/apps/icon.png"
Ronan's avatar
Ronan committed
436 437 438 439 440
      DESTINATION "${CMAKE_INSTALL_DATADIR}/icons/hicolor/${DIR}/apps/"
      RENAME "${EXECUTABLE_NAME}.png"
    )
  endforeach ()
endif ()
441

442 443 444 445
# ------------------------------------------------------------------------------
# Install rc files.
# ------------------------------------------------------------------------------

446
install(FILES "${ASSETS_DIR}/linphonerc-factory"
Ronan's avatar
Ronan committed
447
  DESTINATION "${CMAKE_INSTALL_DATADIR}/${EXECUTABLE_NAME}"
448
)
449 450

set(ASSETS_ASSISTANT_DIR "${ASSETS_DIR}/assistant")
Ronan's avatar
Ronan committed
451
set(ASSISTANT_INSTALL_DATADIR "${CMAKE_INSTALL_DATADIR}/${EXECUTABLE_NAME}/assistant")
452 453

install(FILES "${ASSETS_ASSISTANT_DIR}/use-other-sip-account.rc"
454
  DESTINATION "${ASSISTANT_INSTALL_DATADIR}"
455
)
456
install(FILES "${ASSETS_ASSISTANT_DIR}/create-app-sip-account.rc"
457
  DESTINATION "${ASSISTANT_INSTALL_DATADIR}"
458
)
459
install(FILES "${ASSETS_ASSISTANT_DIR}/use-app-sip-account.rc"
460
  DESTINATION "${ASSISTANT_INSTALL_DATADIR}"
461
)
462 463

# ------------------------------------------------------------------------------
464
# CPack settings & RPM.
465 466
# ------------------------------------------------------------------------------

467
add_subdirectory(build)
Ronan's avatar
Ronan committed
468

469 470 471 472 473 474 475 476
# ------------------------------------------------------------------------------
# To start better integration into IDE.
# ------------------------------------------------------------------------------

source_group(
  "Qml" REGULAR_EXPRESSION ".+\.qml$"
)
source_group(
477
  "Js" REGULAR_EXPRESSION ".+\.js$"
478 479 480 481
)
source_group(
  "Svg" REGULAR_EXPRESSION ".+\.svg$"
)