CMakeLists.txt 715 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 6

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${KDE4_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
)

17
kde4_add_ui_files(_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")

22
kde4_add_executable(kgpgconf ${_kgpgconf_SRCS})
Frank Osterfeld's avatar
Frank Osterfeld committed
23

24
target_link_libraries(kgpgconf ${QGPGME_LIBRARIES} ${KDE4_KDEUI_LIBS})
Frank Osterfeld's avatar
Frank Osterfeld committed
25

26
install(TARGETS kgpgconf ${INSTALL_TARGETS_DEFAULT_ARGS})