Warning, /utilities/keysmith/src/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 #
0002 # SPDX-License-Identifier: BSD-2-Clause
0003 # SPDX-FileCopyrightText: 2019 Bhushan Shah <bshah@kde.org>
0004 # SPDX-FileCopyrightText: 2019 Friedrich W. H. Kossebau <kossebau@kde.org>
0005 # SPDX-FileCopyrightText: 2019-2021 Johan Ouwerkerk <jm.ouwerkerk@gmail.com>
0006 # SPDX-FileCopyrightText: 2020 Nicolas Fella <nicolas.fella@gmx.de>
0007 # SPDX-FileCopyrightText: 2021 Devin Lin <espidev@gmail.com>
0008 #
0009
0010 add_subdirectory(base32)
0011 add_subdirectory(uri)
0012 add_subdirectory(hmac)
0013 add_subdirectory(oath)
0014 add_subdirectory(secrets)
0015 add_subdirectory(account)
0016 add_subdirectory(model)
0017 add_subdirectory(validators)
0018 add_subdirectory(app)
0019
0020 configure_file ("${CMAKE_CURRENT_SOURCE_DIR}/version.h.in" "${CMAKE_CURRENT_BINARY_DIR}/version.h")
0021
0022 #
0023 # The features header should be namespaced, or at least it *must not* be called 'features.h'.
0024 # Reason is that the GNU C++ standard library implementation also refers to a 'features.h'
0025 # and compilation will blow up very badly inside 'os_defines.h' if it does not get the
0026 # 'features.h' it was (really) looking for.
0027 #
0028 configure_file ("${CMAKE_CURRENT_SOURCE_DIR}/keysmith-features.h.in" "${CMAKE_CURRENT_BINARY_DIR}/keysmith-features.h")
0029
0030 set(keysmith_SRCS
0031 main.cpp
0032 )
0033
0034 qt_add_resources(RESOURCES resources.qrc)
0035 add_executable(keysmith ${keysmith_SRCS} ${RESOURCES})
0036 target_link_libraries(keysmith
0037 PUBLIC
0038 Qt6::Core
0039 Qt6::Gui
0040 Qt6::Qml
0041 Qt6::Quick
0042 Qt6::Svg
0043 Qt6::QuickControls2
0044 KF6::I18n
0045 keysmith_lib
0046 )
0047
0048 if (ENABLE_DBUS_INTERFACE)
0049 target_link_libraries(keysmith PUBLIC KF6::DBusAddons)
0050 endif()
0051
0052 if(ANDROID)
0053 kirigami_package_breeze_icons(ICONS
0054 application-quit
0055 answer-correct
0056 edit-delete
0057 edit-undo
0058 go-next
0059 list-add
0060 unlock
0061 lock
0062 )
0063
0064 ecm_add_android_apk(keysmith ANDROID_DIR ${CMAKE_SOURCE_DIR}/android)
0065 else()
0066 target_link_libraries(keysmith PUBLIC Qt6::Widgets)
0067 endif()
0068
0069 install(TARGETS keysmith ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})