#################################################
#
#  (C) 2010-2011 Calvin Morrison
#  mutantturkey@gmail.com
#
#  Improvements and feedback are welcome
#
#  This file is released under GPL >= 2
#
#################################################

include_directories(
  ${CMAKE_CURRENT_BINARY_DIR}
  ${CMAKE_BINARY_DIR}
  ${TDE_INCLUDE_DIR}
  ${TQT_INCLUDE_DIRS}
)

link_directories(
  ${TQT_LIBRARY_DIRS}
)


#### other data #################################

tde_install_icons( kcoloredit kcolorchooser )

foreach( _desktop kcoloredit.desktop kcolorchooser.desktop )
  tde_create_translated_desktop(
    SOURCE ${_desktop}
    PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kcoloredit-desktops
)
endforeach()

install( FILES
    kcoloreditui.rc
  DESTINATION ${DATA_INSTALL_DIR}/kcoloredit )


#### kcoloredit (executable) ####################

tde_add_executable( kcoloredit AUTOMOC
  SOURCES
    kzcolorselector.cpp imageselection.cpp
    texteditselection.cpp gradientselection.cpp colorselector.cpp
    kxycolorselector.cpp paletteview.cpp paletteviewscrolledarea.cpp
    editablestreamhistory.cpp color.cpp palette.cpp loadpalettedlg.cpp
    kcoloreditview.cpp kcoloreditdoc.cpp kcoloredit.cpp main.cpp
  LINK tdeio-shared
  DESTINATION ${BIN_INSTALL_DIR}
)


##### kcolorchooser (executable) ################

tde_add_executable( kcolorchooser AUTOMOC
  SOURCES kcolorchooser.cpp
  LINK tdeui-shared
  DESTINATION ${BIN_INSTALL_DIR}
)
