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

include_directories( ${CMAKE_SOURCE_DIR}/libkleo/backends/qgpgme )
4
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
    configreader.cpp
10
    configwriter.cpp
11
    configuration.cpp
Frank Osterfeld's avatar
Frank Osterfeld committed
12
    exception.cpp
Frank Osterfeld's avatar
Frank Osterfeld committed
13 14 15 16 17 18
    main.cpp
    mainwindow.cpp
)

kde4_add_ui_files( _kgpgconf_SRCS mainwidget.ui )

19 20 21 22

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

Frank Osterfeld's avatar
Frank Osterfeld committed
23
kde4_add_executable(kgpgconf ${_kgpgconf_SRCS} )
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})
Frank Osterfeld's avatar
Frank Osterfeld committed
27