CMakeLists.txt 16.6 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
if (NOT WIN32)
49 50
  check_cxx_compiler_flag("-Wsuggest-override" SUGGEST_OVERRIDE)
  set(CUSTOM_FLAGS "\
Ronan's avatar
Ronan committed
51
-Wall \
52 53
-Wcast-align \
-Wconversion \
54
-Werror=return-type \
55
-Werror=old-style-cast \
56 57 58 59 60 61 62 63
-Wextra \
-Wfloat-equal \
-Winit-self \
-Woverloaded-virtual \
-Wpointer-arith \
-Wuninitialized \
-Wunused \
")
64
  if (NOT CMAKE_CXX_COMPILER_ID MATCHES "Clang")
65
    set(CUSTOM_FLAGS "${CUSTOM_FLAGS} -Wlogical-op")
66 67
  endif ()
  if (SUGGEST_OVERRIDE)
68
    set(CUSTOM_FLAGS "${CUSTOM_FLAGS} -Wsuggest-override -Werror=suggest-override")
69 70
  endif ()
endif ()
71

72 73
set(CUSTOM_FLAGS "${CUSTOM_FLAGS} -DQT_NO_EXCEPTIONS")

74
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CUSTOM_FLAGS}")
75
# See: http://stackoverflow.com/a/1372836
76
if (WIN32)
77
  set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D_WINSOCKAPI_")
78
endif ()
79

80 81 82
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
83 84 85
# ------------------------------------------------------------------------------
# Define packages, libs, sources, headers, resources and languages.
# ------------------------------------------------------------------------------
86

87
set(QT5_PACKAGES Core Gui Quick Widgets QuickControls2 Svg LinguistTools Concurrent Network)
88 89 90
if (ENABLE_DBUS)
  list(APPEND QT5_PACKAGES DBus)
endif ()
91
set(QT5_PACKAGES_OPTIONAL TextToSpeech)
92

93
if (LINPHONE_BUILDER_GROUP_EXTERNAL_SOURCE_PATH_BUILDERS)
94 95
  include("${EP_linphone_CONFIG_DIR}/LinphoneConfig.cmake")
  include("${EP_linphone_CONFIG_DIR}/wrappers/cpp/LinphoneCxxConfig.cmake")
96
  include("${EP_bctoolbox_CONFIG_DIR}/BcToolboxConfig.cmake")
97
  include("${EP_belcard_CONFIG_DIR}/BelcardConfig.cmake")
98
else ()
99 100 101 102
  find_package(Linphone REQUIRED)
  find_package(LinphoneCxx REQUIRED)
  find_package(BcToolbox REQUIRED)
  find_package(Belcard REQUIRED)
103
endif ()
jehan's avatar
jehan committed
104

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

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

215
set(TESTS
216 217
  src/tests/assistant-view/AssistantViewTest.cpp
  src/tests/assistant-view/AssistantViewTest.hpp
218 219
  src/tests/main-view/MainViewTest.cpp
  src/tests/main-view/MainViewTest.hpp
220 221
  src/tests/self-test/SelfTest.cpp
  src/tests/self-test/SelfTest.hpp
222 223
  src/tests/TestUtils.cpp
  src/tests/TestUtils.hpp
224 225 226 227 228
)

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

229 230 231 232 233 234
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)
235 236
  list(APPEND SOURCES src/components/core/messages-count-notifier/MessagesCountNotifierWindows.cpp)
  list(APPEND HEADERS src/components/core/messages-count-notifier/MessagesCountNotifierWindows.hpp)
237 238 239 240 241 242 243 244
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)
245 246
  list(APPEND SOURCES src/app/single-application/SingleApplicationDBus.cpp)
  list(APPEND HEADERS src/app/single-application/SingleApplicationDBusPrivate.hpp)
247
else ()
248 249
  list(APPEND SOURCES src/app/single-application/SingleApplication.cpp)
  list(APPEND HEADERS src/app/single-application/SingleApplicationPrivate.hpp)
250
endif ()
251

Ronan's avatar
Ronan committed
252
set(QRC_RESOURCES resources.qrc)
253

254
set(LANGUAGES_DIRECTORY "${ASSETS_DIR}/languages")
255
set(I18N_FILENAME i18n.qrc)
256 257
set(LANGUAGES en fr)

Ronan's avatar
Ronan committed
258
# ------------------------------------------------------------------------------
259

260 261
function (PREPEND list prefix)
  set(new_list "")
262

263 264 265
  foreach (elem ${${list}})
    list(APPEND new_list "${prefix}${elem}")
  endforeach ()
266

267 268 269 270
  set(${list} ${new_list} PARENT_SCOPE)
endfunction ()

# Force absolute paths.
271 272 273
PREPEND(SOURCES "${CMAKE_CURRENT_SOURCE_DIR}/")
PREPEND(HEADERS "${CMAKE_CURRENT_SOURCE_DIR}/")
PREPEND(QRC_RESOURCES "${CMAKE_CURRENT_SOURCE_DIR}/")
274

Ronan's avatar
Ronan committed
275
# ------------------------------------------------------------------------------
276
# Compute QML files list.
Ronan's avatar
Ronan committed
277
# ------------------------------------------------------------------------------
278 279 280 281 282 283

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
284
    "^[ \t]*<[ \t]*file[ \t]*>[ \t]*(.+\\.[a-z]+)[ \t]*<[ \t]*/[ \t]*file[ \t]*>[ \t]*$"
285 286
    "\\1"
    result
287 288
    "${line}"
  )
289 290
  string(REGEX MATCH "\\.[a-z]+$" is_ui ${result})
  if (NOT ${is_ui} STREQUAL "")
291
    list(APPEND QML_SOURCES "${CMAKE_CURRENT_SOURCE_DIR}/${result}")
292 293 294
  endif ()
endforeach ()

295 296 297 298 299
# ------------------------------------------------------------------------------
# Init git hooks.
# ------------------------------------------------------------------------------

if (NOT WIN32)
Ghislain MARY's avatar
Ghislain MARY committed
300 301
  add_custom_target(
    check_qml DEPENDS ${QML_SOURCES}
302
    COMMAND "${CMAKE_CURRENT_SOURCE_DIR}/tools/check_qml_syntax"
Ghislain MARY's avatar
Ghislain MARY committed
303
  )
304
endif ()
305 306

execute_process(COMMAND ${CMAKE_COMMAND} -E copy
307
  "${CMAKE_CURRENT_SOURCE_DIR}/tools/private/pre-commit"
308
  "${CMAKE_CURRENT_SOURCE_DIR}/.git/hooks/pre-commit"
309 310
)

311 312 313 314 315 316 317
# ------------------------------------------------------------------------------
# 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
318
# ------------------------------------------------------------------------------
319
# Build.
Ronan's avatar
Ronan committed
320
# ------------------------------------------------------------------------------
321

322
find_package(Qt5 COMPONENTS ${QT5_PACKAGES} REQUIRED)
323
find_package(Qt5 COMPONENTS ${QT5_PACKAGES_OPTIONAL} QUIET)
324
find_package(Qt5 COMPONENTS Test REQUIRED)
325

326
if (CMAKE_INSTALL_RPATH)
327 328 329 330
  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}")
331
endif ()
332

333 334
# Add languages support.
add_subdirectory(${LANGUAGES_DIRECTORY})
335
list(APPEND QRC_RESOURCES "${CMAKE_CURRENT_BINARY_DIR}/${LANGUAGES_DIRECTORY}/${I18N_FILENAME}")
336 337

# Add qrc. (images, qml, translations...)
338
qt5_add_resources(RESOURCES ${QRC_RESOURCES})
339 340

# Build.
341 342 343 344 345 346 347
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)

348
if (WIN32)
349 350
  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})
351
else ()
352 353
  add_executable(${TARGET_NAME} $<TARGET_OBJECTS:${APP_LIBRARY}> ${MAIN_FILE})
  add_executable(${TESTER_TARGET_NAME} $<TARGET_OBJECTS:${APP_LIBRARY}> ${TESTER_MAIN_FILE} ${TESTS})
354
endif ()
355

356
if (NOT WIN32)
Ghislain MARY's avatar
Ghislain MARY committed
357
  add_dependencies(update_translations check_qml)
358
endif ()
359
set_target_properties(${TARGET_NAME} PROPERTIES OUTPUT_NAME "${EXECUTABLE_NAME}")
360
set_target_properties(${TESTER_TARGET_NAME} PROPERTIES OUTPUT_NAME "${TESTER_EXECUTABLE_NAME}")
361

362 363
set(INCLUDED_DIRECTORIES "${LINPHONECXX_INCLUDE_DIRS}" "${LINPHONE_INCLUDE_DIRS}" "${BELCARD_INCLUDE_DIRS}" "${BCTOOLBOX_INCLUDE_DIRS}")
set(LIBRARIES ${BCTOOLBOX_CORE_LIBRARIES} ${BELCARD_LIBRARIES} ${LINPHONE_LIBRARIES} ${LINPHONECXX_LIBRARIES})
364

365
foreach (package ${QT5_PACKAGES})
366
  list(APPEND INCLUDED_DIRECTORIES "${Qt5${package}_INCLUDE_DIRS}")
367 368 369
  # `qt5_create_translation` is provided from `LinguistTools` package.
  # But the `Qt5::LinguistTools` lib does not exist. Remove it.
  if (NOT (${package} STREQUAL LinguistTools))
370
    list(APPEND LIBRARIES ${Qt5${package}_LIBRARIES})
371 372 373 374 375 376
  endif ()
endforeach ()

foreach (package ${QT5_PACKAGES_OPTIONAL})
  if ("${Qt5${package}_FOUND}")
    message("Optional package ${package} found.")
377 378
    list(APPEND INCLUDED_DIRECTORIES "${Qt5${package}_INCLUDE_DIRS}")
    list(APPEND LIBRARIES ${Qt5${package}_LIBRARIES})
379 380

    string(TOUPPER "${package}" INCLUDE_NAME)
381
    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D${INCLUDE_NAME}_ENABLED")
382 383 384
  else ()
    message("Optional package ${package} not found.")
  endif ()
385
endforeach ()
Ronan's avatar
Ronan committed
386

387 388 389
if (APPLE)
  list(APPEND LIBRARIES "-framework Cocoa")
endif ()
390

391 392 393 394 395 396 397 398 399 400 401 402 403 404 405
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 ()
406

407
install(FILES "assets/linphone.desktop"
408 409
  DESTINATION "${CMAKE_INSTALL_DATADIR}/applications"
)
410
install(FILES "${ASSETS_DIR}/images/linphone_logo.svg"
411
  DESTINATION "${CMAKE_INSTALL_DATADIR}/icons/hicolor/scalable/apps/"
412 413
  RENAME "linphone.svg"
)
414

415 416 417 418
# ------------------------------------------------------------------------------
# Install rc files.
# ------------------------------------------------------------------------------

419
install(FILES "${ASSETS_DIR}/linphonerc-factory"
420 421
  DESTINATION "${CMAKE_INSTALL_DATADIR}/linphone"
)
422 423

set(ASSETS_ASSISTANT_DIR "${ASSETS_DIR}/assistant")
424
set(ASSISTANT_INSTALL_DATADIR "${CMAKE_INSTALL_DATADIR}/linphone/assistant")
425 426

install(FILES "${ASSETS_ASSISTANT_DIR}/use-other-sip-account.rc"
427
  DESTINATION "${ASSISTANT_INSTALL_DATADIR}"
428 429
)
install(FILES "${ASSETS_ASSISTANT_DIR}/create-linphone-sip-account.rc"
430
  DESTINATION "${ASSISTANT_INSTALL_DATADIR}"
431 432
)
install(FILES "${ASSETS_ASSISTANT_DIR}/use-linphone-sip-account.rc"
433
  DESTINATION "${ASSISTANT_INSTALL_DATADIR}"
434
)
435 436 437 438 439 440 441 442

# ------------------------------------------------------------------------------
# CPack settings.
# ------------------------------------------------------------------------------

set(CPACK_SOURCE_GENERATOR "TGZ")
set(CPACK_SOURCE_PACKAGE_FILE_NAME "${PROJECT_NAME}-${PROJECT_VERSION}")
set(CPACK_SOURCE_IGNORE_FILES
Ronan's avatar
Ronan committed
443 444 445 446 447 448
  "^${CMAKE_BINARY_DIR}"
  "/\\\\..+"
  "OUTPUT"
  "WORK"
  "cmake_builder"
  "submodules"
449 450 451
)

include(CPack)
Ronan's avatar
Ronan committed
452

453 454 455 456 457 458 459 460 461 462 463 464 465
# ------------------------------------------------------------------------------
# To start better integration into IDE.
# ------------------------------------------------------------------------------

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