CMakeLists.txt 673 Bytes
Newer Older
Frank Osterfeld's avatar
Frank Osterfeld committed
1 2
project(kgpgconf)

3 4
include_directories(${CMAKE_SOURCE_DIR}/libkleo/backends/qgpgme)
add_definitions(-D_ASSUAN_ONLY_GPG_ERRORS -DKDE_DEFAULT_DEBUG_AREA=5154)
5

Laurent Montel's avatar
Port++  
Laurent Montel committed
6
kde_enable_exceptions()
Frank Osterfeld's avatar
Frank Osterfeld committed
7 8

set(_kgpgconf_SRCS
9 10 11 12 13 14
  configreader.cpp
  configwriter.cpp
  configuration.cpp
  exception.cpp
  main.cpp
  mainwindow.cpp
Frank Osterfeld's avatar
Frank Osterfeld committed
15 16
)

Laurent Montel's avatar
Port++  
Laurent Montel committed
17
qt5_wrap_ui(_kgpgconf_SRCS mainwidget.ui)
18 19 20 21

# todo: more appropriate icon?
kde4_add_app_icon(_kgpgconf_SRCS "${KDE4_ICON_DIR}/oxygen/*/apps/preferences-desktop-cryptography.png")

Laurent Montel's avatar
Port++  
Laurent Montel committed
22
add_executable(kgpgconf ${_kgpgconf_SRCS})
Frank Osterfeld's avatar
Frank Osterfeld committed
23

Laurent Montel's avatar
Port++  
Laurent Montel committed
24
target_link_libraries(kgpgconf ${QGPGME_LIBRARIES} Qt5::Core KF5::KDELibs4Support )
Frank Osterfeld's avatar
Frank Osterfeld committed
25

26
install(TARGETS kgpgconf ${INSTALL_TARGETS_DEFAULT_ARGS})