add_definitions (-DQT3_SUPPORT -DQT3_SUPPORT_WARNINGS)

add_subdirectory( kcmthinkpad ) 

include_directories(${CMAKE_SOURCE_DIR}/kmilo/kmilod  )


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

set(kmilo_thinkpad_PART_SRCS thinkpad.cpp )

kde4_add_plugin(kmilo_thinkpad ${kmilo_thinkpad_PART_SRCS})


target_link_libraries(kmilo_thinkpad  ${KDE4_KDECORE_LIBS} kmilo ${KDE4_KIO_LIBS} )

install(TARGETS kmilo_thinkpad  DESTINATION ${PLUGIN_INSTALL_DIR})


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

install( FILES kmilo_thinkpad.desktop  DESTINATION ${SERVICES_INSTALL_DIR}/kmilo)
