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/AbstractMessagesCountNotifier.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/AbstractMessagesCountNotifier.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 234 235 236
    src/components/core/messages-count-notifier/MessagesCountNotifierMacOs.m
    src/components/other/desktop-tools/DesktopToolsMacOs.cpp
  )
  list(APPEND HEADERS
237
    src/app/single-application/SingleApplicationPrivate.hpp
238 239 240 241 242
    src/components/core/messages-count-notifier/MessagesCountNotifierMacOs.hpp
    src/components/other/desktop-tools/DesktopToolsMacOs.hpp
  )
elseif (WIN32)
  list(APPEND SOURCES
243
    src/app/single-application/SingleApplication.cpp
244 245 246 247
    src/components/core/messages-count-notifier/MessagesCountNotifierSystemTrayIcon.cpp
    src/components/other/desktop-tools/DesktopToolsWindows.cpp
  )
  list(APPEND HEADERS
248
    src/app/single-application/SingleApplicationPrivate.hpp
249 250 251
    src/components/core/messages-count-notifier/MessagesCountNotifierSystemTrayIcon.hpp
    src/components/other/desktop-tools/DesktopToolsWindows.hpp
  )
252
else ()
253
  list(APPEND SOURCES
254
    src/app/single-application/SingleApplicationDBus.cpp
255 256
    src/components/core/messages-count-notifier/MessagesCountNotifierSystemTrayIcon.cpp
    src/components/other/desktop-tools/DesktopToolsLinux.cpp
257 258
    src/components/other/desktop-tools/screen-saver/ScreenSaverDBus.cpp
    src/components/other/desktop-tools/screen-saver/ScreenSaverXdg.cpp
259 260
  )
  list(APPEND HEADERS
261
    src/app/single-application/SingleApplicationDBusPrivate.hpp
262 263
    src/components/core/messages-count-notifier/MessagesCountNotifierSystemTrayIcon.hpp
    src/components/other/desktop-tools/DesktopToolsLinux.hpp
264 265
    src/components/other/desktop-tools/screen-saver/ScreenSaverDBus.hpp
    src/components/other/desktop-tools/screen-saver/ScreenSaverXdg.hpp
266
  )
267 268
endif ()

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

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

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

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

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

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

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

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

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
301
    "^[ \t]*<[ \t]*file[ \t]*>[ \t]*(.+\\.[a-z]+)[ \t]*<[ \t]*/[ \t]*file[ \t]*>[ \t]*$"
302 303
    "\\1"
    result
304 305
    "${line}"
  )
306 307
  string(REGEX MATCH "\\.[a-z]+$" is_ui ${result})
  if (NOT ${is_ui} STREQUAL "")
308
    list(APPEND QML_SOURCES "${CMAKE_CURRENT_SOURCE_DIR}/${result}")
309 310 311
  endif ()
endforeach ()

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

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

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

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

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

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

339 340
include_directories(src/)

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

344
if (CMAKE_INSTALL_RPATH)
345 346 347 348
  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}")
349
endif ()
350

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

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

# Build.
359 360 361 362 363 364 365
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)

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

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

Ghislain MARY's avatar
Ghislain MARY committed
377 378
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})
379

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

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

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

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

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

target_link_libraries(${TARGET_NAME} ${LIBRARIES})

411
foreach (target ${TARGET_NAME})
412 413 414 415 416 417 418
  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 ()
419

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

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

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

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

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

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

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

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

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

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

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