project(kjots)

add_subdirectory( icons )




########### next target ###############

set(kjots_SRCS
   main.cpp
   KJotsMain.cpp
   kjotsentry.cpp
   kjotsedit.cpp
   kjotsbookmarks.cpp
   bookshelf.cpp
   kjotsbrowser.cpp )

kde4_add_ui_files(kjots_SRCS confpagemisc.ui )

kde4_add_kcfg_files(kjots_SRCS KJotsSettings.kcfgc )

kde4_add_executable(kjots ${kjots_SRCS})

target_link_libraries(kjots  ${KDE4_KIO_LIBS} )

install(TARGETS kjots  DESTINATION ${BIN_INSTALL_DIR} )


########### install files ###############

install( FILES Kjots.desktop  DESTINATION ${XDG_APPS_INSTALL_DIR})
install( FILES kjots.kcfg  DESTINATION ${KCFG_INSTALL_DIR})
install( FILES kjotsui.rc  DESTINATION ${DATA_INSTALL_DIR}/kjots)

