project(libpolyester)

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

add_subdirectory( config )

set( polyester_SRCS
     polyester.cpp
     drawcontrol.cpp
     scrollareaborder.cpp
     misc.cpp
   )

include(${QT_USE_FILE})

kde4_add_plugin(libpolyester ${polyester_SRCS} )

# TODO: check if too much definitions.
target_link_libraries( libpolyester
#	${KDE4_KDECORE_LIBS}
	${QT_LIBRARIES}
	${QT_QT3SUPPORT_LIBRARY}
	${KDE4_KDEUI_LIBS}
#	${QT_QTOPENGL_LIBRARY}
#	${KDE4_KDEFX_LIBS} 
#	${X11_X11_LIB}
#	${X11_Xfixes_LIB}
#	${X11_Xcursor_LIB}
#	${X11_Xinerama_LIB}
#	${X11_Xrender_LIB}
#	${X11_Xrandr_LIB}
#	${X11_XTest_LIB}
#	${X11_LIBRARIES}
#	freetype
#	fontconfig
#	GLU GL
)

install( TARGETS libpolyester DESTINATION ${PLUGIN_INSTALL_DIR}/plugins/styles/ )

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

install( FILES polyester.themerc DESTINATION  ${DATA_INSTALL_DIR}/kstyle/themes )

