

add_subdirectory( test )

include_directories( ${CMAKE_SOURCE_DIR}/libs/koproperty/editors ${KOMAIN_INCLUDES} )


set(libkopropertyeditors_SRCS
	${CMAKE_SOURCE_DIR}/libs/koproperty/editors/booledit.cpp
	${CMAKE_SOURCE_DIR}/libs/koproperty/editors/coloredit.cpp
	${CMAKE_SOURCE_DIR}/libs/koproperty/editors/combobox.cpp
	${CMAKE_SOURCE_DIR}/libs/koproperty/editors/cursoredit.cpp
	${CMAKE_SOURCE_DIR}/libs/koproperty/editors/dateedit.cpp
	${CMAKE_SOURCE_DIR}/libs/koproperty/editors/datetimeedit.cpp
	${CMAKE_SOURCE_DIR}/libs/koproperty/editors/dummywidget.cpp
	${CMAKE_SOURCE_DIR}/libs/koproperty/editors/fontedit.cpp
	${CMAKE_SOURCE_DIR}/libs/koproperty/editors/linestyledit.cpp
	${CMAKE_SOURCE_DIR}/libs/koproperty/editors/pixmapedit.cpp
	${CMAKE_SOURCE_DIR}/libs/koproperty/editors/pointedit.cpp
	${CMAKE_SOURCE_DIR}/libs/koproperty/editors/rectedit.cpp
	${CMAKE_SOURCE_DIR}/libs/koproperty/editors/sizeedit.cpp
	${CMAKE_SOURCE_DIR}/libs/koproperty/editors/sizepolicyedit.cpp
	${CMAKE_SOURCE_DIR}/libs/koproperty/editors/spinbox.cpp
	${CMAKE_SOURCE_DIR}/libs/koproperty/editors/stringedit.cpp
	${CMAKE_SOURCE_DIR}/libs/koproperty/editors/stringlistedit.cpp
	${CMAKE_SOURCE_DIR}/libs/koproperty/editors/symbolcombo.cpp
	${CMAKE_SOURCE_DIR}/libs/koproperty/editors/timeedit.cpp
	${CMAKE_SOURCE_DIR}/libs/koproperty/editors/urledit.cpp
)

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

set(koproperty_LIB_SRCS ${libkopropertyeditors_SRCS}
   property.cpp
   customproperty.cpp
   set.cpp
   editor.cpp
   editoritem.cpp
   factory.cpp
   widget.cpp )


kde4_add_library(koproperty SHARED ${koproperty_LIB_SRCS})

target_link_libraries(koproperty ${KDE4_KDE3SUPPORT_LIBS} )

set_target_properties(koproperty PROPERTIES VERSION ${GENERIC_KOFFICE_LIB_VERSION} SOVERSION ${GENERIC_KOFFICE_LIB_SOVERSION} )
install(TARGETS koproperty  DESTINATION ${LIB_INSTALL_DIR})


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

kde4_install_icons( ${DATA_INSTALL_DIR}/koffice/icons  )
install( FILES
customproperty.h
editor.h
editoritem.h
factory.h
koproperty_global.h
koproperty_export.h
property.h
set.h
utils.h
widget.h
widgetproxy.h
DESTINATION ${INCLUDE_INSTALL_DIR}/koproperty)

install( FILES
editors/booledit.h
editors/booledit.h
editors/coloredit.h
editors/combobox.h
editors/cursoredit.h
editors/dateedit.h
editors/datetimeedit.h
editors/dummywidget.h
editors/fontedit.h
editors/linestyleedit.h
editors/pixmapedit.h
editors/pointedit.h
editors/rectedit.h
editors/sizeedit.h
editors/sizepolicyedit.h
editors/spinbox.h
editors/spinbox.h
editors/stringedit.h
editors/stringlistedit.h
editors/symbolcombo.h
editors/timeedit.h
editors/urledit.h
DESTINATION ${INCLUDE_INSTALL_DIR}/koproperty/editors)

