# Copyright (C) 2018 Intevation GmbH <info@intevation.de>
#
# This file is Free Software under the GNU GPL (v>=2)
# and comes with ABSOLUTELY NO WARRANTY!
# See LICENSE.txt for details.

set(EXECUTABLE_NAME "gpgcardgui")

set(EXECUTABLE_SRC
    main.cpp
    gpgcardgui.cpp
    mainwindow.cpp
    ${CMAKE_SOURCE_DIR}/src/util/strhelp.c
    ${CMAKE_SOURCE_DIR}/src/util/w32-gettext.c
)

add_executable(${EXECUTABLE_NAME}
    ${_add_executable_params}
    ${EXECUTABLE_SRC}
)

target_link_libraries(${EXECUTABLE_NAME}
    Qt5::Widgets
    KPim5::Libkleo
    Gpgmepp
    QGpgme
)

if (WIN32)
   set_target_properties(${EXECUTABLE_NAME} PROPERTIES LINK_FLAGS "-municode")
endif(WIN32)

install(TARGETS ${EXECUTABLE_NAME} DESTINATION bin)
