Warning, /utilities/krecorder/src/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 # SPDX-FileCopyrightText: 2020 Jonah BrĂ¼chert <jbb@kaidan.im>
0002 # SPDX-FileCopyrightText: 2022 Devin Lin <devin@kde.org>
0003 # SPDX-License-Identifier: GPL-3.0-or-later
0004
0005 set(krecorder_SRCS
0006 main.cpp
0007 about.cpp
0008 audioplayer.cpp
0009 audioprober.cpp
0010 audiorecorder.cpp
0011 recording.cpp
0012 recordingmodel.cpp
0013 settingsmodel.cpp
0014 utils.cpp
0015 )
0016
0017 qt6_add_resources(RESOURCES resources.qrc)
0018
0019 add_executable(krecorder ${krecorder_SRCS} ${RESOURCES})
0020 target_link_libraries(krecorder
0021 Qt${QT_MAJOR_VERSION}::Core
0022 Qt${QT_MAJOR_VERSION}::Gui
0023 Qt${QT_MAJOR_VERSION}::Qml
0024 Qt${QT_MAJOR_VERSION}::Quick
0025 Qt${QT_MAJOR_VERSION}::Widgets
0026 Qt${QT_MAJOR_VERSION}::QuickControls2
0027 Qt${QT_MAJOR_VERSION}::Multimedia
0028 Qt${QT_MAJOR_VERSION}::Svg
0029 KF${KF_MAJOR_VERSION}::I18n
0030 KF${KF_MAJOR_VERSION}::CoreAddons
0031 )
0032
0033 target_include_directories(krecorder PRIVATE ${CMAKE_BINARY_DIR})
0034
0035 install(TARGETS krecorder ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
0036
0037 if(ANDROID)
0038 kirigami_package_breeze_icons(ICONS
0039 media-playback-pause media-playback-start
0040 media-playback-stop media-record audio-input-microphone-symbolic
0041 entry-edit delete settings-configure
0042 )
0043
0044 ecm_add_android_apk(krecorder ANDROID_DIR ${CMAKE_SOURCE_DIR}/android)
0045 endif()