CMakeLists.txt 16.9 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

28
set(EXECUTABLE_NAME linphone)
29 30
set(TESTER_EXECUTABLE_NAME "${EXECUTABLE_NAME}-tester")

31
set(TARGET_NAME linphone-qt)
32 33
set(TESTER_TARGET_NAME "${TARGET_NAME}-tester")

34
set(CMAKE_CXX_STANDARD 11)
35

36 37
set(ASSETS_DIR assets)

38
option(ENABLE_DBUS "Enable single instance handling via DBus." NO)
39 40
option(ENABLE_UPDATE_CHECK "Enable update check." NO)

41
include(GNUInstallDirs)
42
include(CheckCXXCompilerFlag)
43

44 45 46 47
# Use automatically moc from Qt5.
set(CMAKE_AUTOMOC ON)
set(CMAKE_INCLUDE_CURRENT_DIR ON)

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

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

79 80
set(CUSTOM_FLAGS "${CUSTOM_FLAGS} -DQT_NO_EXCEPTIONS")

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

87 88 89
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
90 91 92
# ------------------------------------------------------------------------------
# Define packages, libs, sources, headers, resources and languages.
# ------------------------------------------------------------------------------
93

94
set(QT5_PACKAGES Core Gui Quick Widgets QuickControls2 Svg LinguistTools Concurrent Network)
95 96 97
if (ENABLE_DBUS)
  list(APPEND QT5_PACKAGES DBus)
endif ()
98
set(QT5_PACKAGES_OPTIONAL TextToSpeech)
99

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

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

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

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

229
set(TESTS
230 231
  src/tests/assistant-view/AssistantViewTest.cpp
  src/tests/assistant-view/AssistantViewTest.hpp
232 233
  src/tests/main-view/MainViewTest.cpp
  src/tests/main-view/MainViewTest.hpp
234 235
  src/tests/self-test/SelfTest.cpp
  src/tests/self-test/SelfTest.hpp
236 237
  src/tests/TestUtils.cpp
  src/tests/TestUtils.hpp
238 239 240 241 242
)

set(MAIN_FILE src/app/main.cpp)
set(TESTER_MAIN_FILE src/tests/main.cpp)

243 244 245 246 247 248
if (UNIX AND NOT APPLE)
  list(APPEND SOURCES src/components/core/messages-count-notifier/MessagesCountNotifierLinux.cpp)
  list(APPEND HEADERS src/components/core/messages-count-notifier/MessagesCountNotifierLinux.hpp)
endif ()

if (WIN32)
249 250
  list(APPEND SOURCES src/components/core/messages-count-notifier/MessagesCountNotifierWindows.cpp)
  list(APPEND HEADERS src/components/core/messages-count-notifier/MessagesCountNotifierWindows.hpp)
251 252 253 254 255 256 257 258
endif ()

if (APPLE)
  list(APPEND SOURCES src/components/core/messages-count-notifier/MessagesCountNotifierMacOs.m)
  list(APPEND HEADERS src/components/core/messages-count-notifier/MessagesCountNotifierMacOs.hpp)
endif ()

if (ENABLE_DBUS)
259 260
  list(APPEND SOURCES src/app/single-application/SingleApplicationDBus.cpp)
  list(APPEND HEADERS src/app/single-application/SingleApplicationDBusPrivate.hpp)
261
else ()
262 263
  list(APPEND SOURCES src/app/single-application/SingleApplication.cpp)
  list(APPEND HEADERS src/app/single-application/SingleApplicationPrivate.hpp)
264
endif ()
265

Ronan's avatar
Ronan committed
266
set(QRC_RESOURCES resources.qrc)
267

268
set(LANGUAGES_DIRECTORY "${ASSETS_DIR}/languages")
269
set(I18N_FILENAME i18n.qrc)
Ronan's avatar
Ronan committed
270
set(LANGUAGES en fr_FR ru tr)
271

Ronan's avatar
Ronan committed
272
# ------------------------------------------------------------------------------
273

274 275
function (PREPEND list prefix)
  set(new_list "")
276

277 278 279
  foreach (elem ${${list}})
    list(APPEND new_list "${prefix}${elem}")
  endforeach ()
280

281 282 283 284
  set(${list} ${new_list} PARENT_SCOPE)
endfunction ()

# Force absolute paths.
285 286 287
PREPEND(SOURCES "${CMAKE_CURRENT_SOURCE_DIR}/")
PREPEND(HEADERS "${CMAKE_CURRENT_SOURCE_DIR}/")
PREPEND(QRC_RESOURCES "${CMAKE_CURRENT_SOURCE_DIR}/")
288

Ronan's avatar
Ronan committed
289
# ------------------------------------------------------------------------------
290
# Compute QML files list.
Ronan's avatar
Ronan committed
291
# ------------------------------------------------------------------------------
292 293 294 295 296 297

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

309 310 311 312 313
# ------------------------------------------------------------------------------
# Init git hooks.
# ------------------------------------------------------------------------------

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

execute_process(COMMAND ${CMAKE_COMMAND} -E copy
321
  "${CMAKE_CURRENT_SOURCE_DIR}/tools/private/pre-commit"
322
  "${CMAKE_CURRENT_SOURCE_DIR}/.git/hooks/pre-commit"
323 324
)

325 326 327 328 329 330 331
# ------------------------------------------------------------------------------
# Create config.h file
# ------------------------------------------------------------------------------

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

Ronan's avatar
Ronan committed
332
# ------------------------------------------------------------------------------
333
# Build.
Ronan's avatar
Ronan committed
334
# ------------------------------------------------------------------------------
335

336 337
include_directories(src/)

338
find_package(Qt5 COMPONENTS ${QT5_PACKAGES} REQUIRED)
339
find_package(Qt5 COMPONENTS ${QT5_PACKAGES_OPTIONAL} QUIET)
340
find_package(Qt5 COMPONENTS Test REQUIRED)
341

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

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

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

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

364
if (WIN32)
365 366
  add_executable(${TARGET_NAME} WIN32 $<TARGET_OBJECTS:${APP_LIBRARY}> assets/linphone.rc ${MAIN_FILE})
  add_executable(${TESTER_TARGET_NAME} WIN32 $<TARGET_OBJECTS:${APP_LIBRARY}> assets/linphone.rc ${TESTER_MAIN_FILE} ${TESTS})
367
else ()
368 369
  add_executable(${TARGET_NAME} $<TARGET_OBJECTS:${APP_LIBRARY}> ${MAIN_FILE})
  add_executable(${TESTER_TARGET_NAME} $<TARGET_OBJECTS:${APP_LIBRARY}> ${TESTER_MAIN_FILE} ${TESTS})
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
set_target_properties(${TESTER_TARGET_NAME} PROPERTIES OUTPUT_NAME "${TESTER_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 404 405
if (APPLE)
  list(APPEND LIBRARIES "-framework Cocoa")
endif ()
406

407 408 409 410 411 412 413 414 415 416 417 418 419 420 421
target_include_directories(${APP_LIBRARY} SYSTEM PRIVATE ${INCLUDED_DIRECTORIES})
target_include_directories(${TARGET_NAME} SYSTEM PRIVATE ${INCLUDED_DIRECTORIES})
target_include_directories(${TESTER_TARGET_NAME} SYSTEM PRIVATE ${INCLUDED_DIRECTORIES})

target_link_libraries(${TARGET_NAME} ${LIBRARIES})
target_link_libraries(${TESTER_TARGET_NAME} ${LIBRARIES} Qt5::Test)

foreach (target ${TARGET_NAME} ${TESTER_TARGET_NAME})
  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 ()
422

423 424 425
configure_file("assets/linphone.desktop.cmake" "linphone.desktop" @ONLY)

install(FILES "${CMAKE_CURRENT_BINARY_DIR}/linphone.desktop"
426 427
  DESTINATION "${CMAKE_INSTALL_DATADIR}/applications"
)
428
install(FILES "${ASSETS_DIR}/images/linphone_logo.svg"
429
  DESTINATION "${CMAKE_INSTALL_DATADIR}/icons/hicolor/scalable/apps/"
430 431
  RENAME "linphone.svg"
)
432

433 434 435 436
# ------------------------------------------------------------------------------
# Install rc files.
# ------------------------------------------------------------------------------

437
install(FILES "${ASSETS_DIR}/linphonerc-factory"
438 439
  DESTINATION "${CMAKE_INSTALL_DATADIR}/linphone"
)
440 441

set(ASSETS_ASSISTANT_DIR "${ASSETS_DIR}/assistant")
442
set(ASSISTANT_INSTALL_DATADIR "${CMAKE_INSTALL_DATADIR}/linphone/assistant")
443 444

install(FILES "${ASSETS_ASSISTANT_DIR}/use-other-sip-account.rc"
445
  DESTINATION "${ASSISTANT_INSTALL_DATADIR}"
446 447
)
install(FILES "${ASSETS_ASSISTANT_DIR}/create-linphone-sip-account.rc"
448
  DESTINATION "${ASSISTANT_INSTALL_DATADIR}"
449 450
)
install(FILES "${ASSETS_ASSISTANT_DIR}/use-linphone-sip-account.rc"
451
  DESTINATION "${ASSISTANT_INSTALL_DATADIR}"
452
)
453 454

# ------------------------------------------------------------------------------
455
# CPack settings & RPM.
456 457
# ------------------------------------------------------------------------------

458
add_subdirectory(build)
Ronan's avatar
Ronan committed
459

460 461 462 463 464 465 466 467 468 469 470 471 472
# ------------------------------------------------------------------------------
# To start better integration into IDE.
# ------------------------------------------------------------------------------

source_group(
  "Qml" REGULAR_EXPRESSION ".+\.qml$"
)
source_group(
  "Js" REGULAR_EXPRESSION ".+\.js)$"
)
source_group(
  "Svg" REGULAR_EXPRESSION ".+\.svg$"
)