project(khexedit)

add_subdirectory( pics )
add_subdirectory( core )
add_subdirectory( gui )
add_subdirectory( parts )

add_definitions (-DQT3_SUPPORT -DQT3_SUPPORT_WARNINGS)

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

set(khexedit_SRCS 
   main.cc 
   toplevel.cc 
   hexmanagerwidget.cc 
   hexeditorwidget.cc 
   hextoolwidget.cc 
   hexviewwidget.cc 
   hexbuffer.cc 
   conversion.cc 
   dialog.cc 
   hexvalidator.cc 
   hexclipboard.cc 
   optiondialog.cc 
   printdialogpage.cc 
   statusbarprogress.cc 
   hexprinter.cc 
   hexerror.cc 
   draglabel.cc 
   stringdialog.cc 
   bitswapwidget.cc 
   chartabledialog.cc 
   hexdrag.cc 
   exportdialog.cc 
   fileinfodialog.cc 
   converterdialog.cc 
   listview.cc 
   searchbar.cc )

kde4_add_executable(khexedit ${khexedit_SRCS})

target_link_libraries(khexedit   ${KDE4_KDEPRINT_LIBS} ${KDE4_KDE3SUPPORT_LIBS})

install(TARGETS khexedit  DESTINATION ${BIN_INSTALL_DIR} )


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

install( FILES khexedit.desktop  DESTINATION ${XDG_APPS_INSTALL_DIR})
install( FILES khexeditui.rc  DESTINATION ${DATA_INSTALL_DIR}/khexedit)

kde4_install_icons( ${ICON_INSTALL_DIR}   )

