keysmith/src/CMakeLists.txt

62 lines
1.8 KiB
CMake
Raw Permalink Normal View History

#
# SPDX-License-Identifier: BSD-2-Clause
# SPDX-FileCopyrightText: 2019 Bhushan Shah <bshah@kde.org>
# SPDX-FileCopyrightText: 2019 Friedrich W. H. Kossebau <kossebau@kde.org>
# SPDX-FileCopyrightText: 2019-2021 Johan Ouwerkerk <jm.ouwerkerk@gmail.com>
# 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>
#
add_subdirectory(base32)
add_subdirectory(uri)
add_subdirectory(hmac)
add_subdirectory(oath)
add_subdirectory(secrets)
add_subdirectory(account)
add_subdirectory(model)
add_subdirectory(validators)
add_subdirectory(app)
configure_file ("${CMAKE_CURRENT_SOURCE_DIR}/version.h.in" "${CMAKE_CURRENT_BINARY_DIR}/version.h")
#
# 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
main.cpp
)
set(keysmith_internal_libs keysmith_lib)
qt5_add_resources(RESOURCES resources.qrc)
add_executable(keysmith ${keysmith_SRCS} ${RESOURCES})
target_link_libraries(keysmith
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}
)
2020-02-12 16:18:26 -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
application-quit
answer-correct
2020-02-12 16:18:26 -05:00
edit-delete
edit-undo
go-next
2020-02-12 16:18:26 -05:00
list-add
unlock
2021-02-28 13:38:02 -05:00
lock
2020-02-12 16:18:26 -05:00
)
endif()
install(TARGETS keysmith ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})