set( EXECUTABLE_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR} )
project(kspy)

add_subdirectory( tests )

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

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


kde4_add_library(kspy SHARED ${kspy_LIB_SRCS})

target_link_libraries(kspy  ${KDE4_KDEUI_LIBS} )

set_target_properties(kspy PROPERTIES VERSION ${GENERIC_LIB_VERSION} SOVERSION ${GENERIC_LIB_SOVERSION} )
install(TARGETS kspy  DESTINATION ${LIB_INSTALL_DIR} )


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


kde4_add_executable(testkspy TEST ${testkspy_SRCS})

target_link_libraries(testkspy  ${KDE4_KDECORE_LIBS} kspy )

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

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

