project(kspy)



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

set(kspy_LIB_SRCS 
   navviewitem.cpp 
   propsview.cpp 
   navview.cpp 
   spy.cpp 
   sigslotview.cpp 
   receiversview.cpp 
   classinfoview.cpp )

kde4_automoc(${kspy_LIB_SRCS})

kde4_add_library(kspy SHARED ${kspy_LIB_SRCS})

target_link_libraries(kspy  ${KDE4_KDEUI_LIBS} )

set_target_properties(kspy PROPERTIES VERSION 1.2.0 SOVERSION 1 )
install(TARGETS kspy  DESTINATION ${LIB_INSTALL_DIR} )


########### next target ###############
if(KDE4_BUILD_TESTS)
set(testkspy_SRCS main.cpp )

kde4_automoc(${testkspy_SRCS})

kde4_add_executable(testkspy ${testkspy_SRCS})

target_link_libraries(testkspy  ${KDE4_KDECORE_LIBS} kspy )

endif(KDE4_BUILD_TESTS)

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

install( FILES kspy.h DESTINATION ${INCLUDE_INSTALL_DIR})

