#
# This file is part of ibus-bogo project.
#
# Copyright (C) 2012 Long T. Dam <longdt90@gmail.com>
# Copyright (C) 2012-2013 Trung Ngo <ndtrung4419@gmail.com>
# Copyright (C) 2013 Duong H. Nguyen <cmpitg@gmail.com>
#
# ibus-bogo is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# ibus-bogo is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with ibus-bogo.  If not, see <http://www.gnu.org/licenses/>.
#

set(GUI_INSTALL_DIR "${BOGO_INSTALL_DIR}/gui")

install (PROGRAMS
  ibus-bogo-settings
  DESTINATION
  lib/ibus-bogo
  )

install (FILES
  controller.py
  tablemodel.py
  controller.ui
  charset_converter.py
  DESTINATION
  ${GUI_INSTALL_DIR}
  )

install (FILES
  ibus-setup-bogo.desktop
  DESTINATION
  share/applications
)

add_custom_target (translations ALL
  COMMAND pylupdate4 controller.pro
  COMMAND lrelease-qt4 controller.pro
  WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/gui
)

install (FILES
	locales/vi_VN.qm
	locales/vi_VN.png
	locales/en_US.png
	DESTINATION ${GUI_INSTALL_DIR}/locales)
