2020-03-03 15:49:57 -05:00
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
# SPDX-FileCopyrightText: 2019 Bhushan Shah <bshah@kde.org>
|
|
|
|
# SPDX-FileCopyrightText: 2019 Friedrich W. H. Kossebau <kossebau@kde.org>
|
2021-02-06 13:38:51 -05:00
|
|
|
# SPDX-FileCopyrightText: 2019-2021 Johan Ouwerkerk <jm.ouwerkerk@gmail.com>
|
2020-03-03 15:49:57 -05:00
|
|
|
# SPDX-FileCopyrightText: 2020 Nicolas Fella <nicolas.fella@gmx.de>
|
2021-02-28 13:38:02 -05:00
|
|
|
# SPDX-FileCopyrightText: 2021 Devin Lin <espidev@gmail.com>
|
2020-03-03 15:49:57 -05:00
|
|
|
#
|
|
|
|
|
2019-12-15 11:15:28 -05:00
|
|
|
add_subdirectory(base32)
|
2020-08-14 13:48:37 -04:00
|
|
|
add_subdirectory(uri)
|
2020-01-27 16:28:49 -05:00
|
|
|
add_subdirectory(hmac)
|
2020-01-27 16:34:39 -05:00
|
|
|
add_subdirectory(oath)
|
2020-02-10 14:04:29 -05:00
|
|
|
add_subdirectory(secrets)
|
2019-12-27 12:08:10 -05:00
|
|
|
add_subdirectory(account)
|
2019-12-27 12:14:22 -05:00
|
|
|
add_subdirectory(model)
|
2019-09-29 06:48:25 -04:00
|
|
|
add_subdirectory(validators)
|
2019-12-27 12:20:34 -05:00
|
|
|
add_subdirectory(app)
|
2019-09-29 06:48:25 -04:00
|
|
|
|
2020-10-02 14:59:13 -04:00
|
|
|
configure_file ("${CMAKE_CURRENT_SOURCE_DIR}/version.h.in" "${CMAKE_CURRENT_BINARY_DIR}/version.h")
|
|
|
|
|
2021-02-06 13:38:51 -05:00
|
|
|
#
|
|
|
|
# The features header should be namespaced, or at least it *must not* be called 'features.h'.
|
|
|
|
# Reason is that the GNU C++ standard library implementation also refers to a 'features.h'
|
|
|
|
# and compilation will blow up very badly inside 'os_defines.h' if it does not get the
|
|
|
|
# 'features.h' it was (really) looking for.
|
|
|
|
#
|
|
|
|
configure_file ("${CMAKE_CURRENT_SOURCE_DIR}/keysmith-features.h.in" "${CMAKE_CURRENT_BINARY_DIR}/keysmith-features.h")
|
|
|
|
|
2019-10-21 13:16:51 -04:00
|
|
|
set(keysmith_SRCS
|
2019-03-24 05:27:49 -04:00
|
|
|
main.cpp
|
2019-12-15 11:15:28 -05:00
|
|
|
)
|
2019-03-24 05:27:49 -04:00
|
|
|
|
2020-08-14 13:12:15 -04:00
|
|
|
set(keysmith_internal_libs keysmith_lib)
|
2019-09-29 06:53:49 -04:00
|
|
|
|
2019-03-24 05:27:49 -04:00
|
|
|
qt5_add_resources(RESOURCES resources.qrc)
|
2019-12-31 09:34:35 -05:00
|
|
|
add_executable(keysmith ${keysmith_SRCS} ${RESOURCES})
|
|
|
|
target_link_libraries(keysmith
|
2021-05-31 15:20:21 -04:00
|
|
|
Qt5::Core Qt5::Gui Qt5::Qml Qt5::Quick Qt5::Svg Qt5::QuickControls2
|
2019-12-28 11:43:24 -05:00
|
|
|
KF5::I18n
|
2019-10-21 13:16:51 -04:00
|
|
|
${keysmith_internal_libs}
|
2019-09-29 06:53:49 -04:00
|
|
|
)
|
2020-02-12 16:18:26 -05:00
|
|
|
|
2021-02-06 13:38:51 -05:00
|
|
|
if (ENABLE_DBUS_INTERFACE)
|
|
|
|
target_link_libraries(keysmith KF5::DBusAddons)
|
|
|
|
endif()
|
|
|
|
|
2020-02-12 16:18:26 -05:00
|
|
|
if(ANDROID)
|
|
|
|
kirigami_package_breeze_icons(ICONS
|
2020-10-06 17:26:13 -04:00
|
|
|
application-quit
|
2020-02-29 17:49:44 -05:00
|
|
|
answer-correct
|
2020-02-12 16:18:26 -05:00
|
|
|
edit-delete
|
2020-04-20 14:19:12 -04:00
|
|
|
edit-undo
|
2020-02-29 17:49:44 -05:00
|
|
|
go-next
|
2020-02-12 16:18:26 -05:00
|
|
|
list-add
|
2020-02-29 17:49:44 -05:00
|
|
|
unlock
|
2021-02-28 13:38:02 -05:00
|
|
|
lock
|
2020-02-12 16:18:26 -05:00
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
2019-12-31 09:34:35 -05:00
|
|
|
install(TARGETS keysmith ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
|