# Copyright 2008 by David Palacio <dpalacio@uninorte.edu.co>
# 
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2,
# or (at your option) any later version.
# *
# This program 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 Library General Public
# License along with this program; if not, write to the
# Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.

project(nextwallpaper)
 
find_package(KDE4 REQUIRED)
include(KDE4Defaults)
 
add_definitions (${QT_DEFINITIONS} ${KDE4_DEFINITIONS})
include_directories(
   ${CMAKE_SOURCE_DIR}
   ${CMAKE_BINARY_DIR}
   ${KDE4_INCLUDES}
   )
 
kde4_add_plugin(plasma_applet_nextwallpaper plasma-nextwallpaper.cpp)

target_link_libraries(plasma_applet_nextwallpaper ${KDE4_PLASMA_LIBS} ${KDE4_KDEUI_LIBS})
 
install(TARGETS plasma_applet_nextwallpaper DESTINATION ${PLUGIN_INSTALL_DIR})
 
install(FILES plasma-applet-nextwallpaper.desktop DESTINATION ${SERVICES_INSTALL_DIR})

