set( EXECUTABLE_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR} )

include_directories(
  ${CMAKE_SOURCE_DIR}
  ${CMAKE_CURRENT_BINARY_DIR}/..
  ${CMAKE_CURRENT_SOURCE_DIR}/..
  )

set(model_view_SRCS
    model-view.cpp
    roles-proxy-model.cpp
)

kde4_add_ui_files(model_view_SRCS model-view.ui)

###

kde4_add_executable(ktp_contact_list_model_view
    ${model_view_SRCS}
    contact-list-model-view-main.cpp
)

target_link_libraries(ktp_contact_list_model_view
  ${QT_QTTEST_LIBRARY}
  ${KDE4_KDECORE_LIBS}
  ${KDE4_KDEUI_LIBS}
  ${TELEPATHY_QT4_LIBRARIES}
  ktpcommoninternalsprivate
  ktpmodelsprivate
)


kde4_add_executable(ktp_kpeople_list_model_view
    ${model_view_SRCS}
    kpeople-model-view-main.cpp
)

target_link_libraries(ktp_kpeople_list_model_view
  ${QT_QTTEST_LIBRARY}
  ${KDE4_KDECORE_LIBS}
  ${KDE4_KDEUI_LIBS}
  ${TELEPATHY_QT4_LIBRARIES}
  ${KPEOPLE_LIBS}
  ktpcommoninternalsprivate
  ktpmodelsprivate
)


set( EXECUTABLE_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR} )

include_directories(
  ${CMAKE_SOURCE_DIR}
  ${CMAKE_CURRENT_BINARY_DIR}/..
  ${CMAKE_CURRENT_SOURCE_DIR}/..
  )

set(model_view_SRCS
    model-view.cpp
    roles-proxy-model.cpp
)

kde4_add_ui_files(model_view_SRCS model-view.ui)

###

kde4_add_executable(ktp_contact_list_model_view
    ${model_view_SRCS}
    contact-list-model-view-main.cpp
)

target_link_libraries(ktp_contact_list_model_view
  ${QT_QTTEST_LIBRARY}
  ${KDE4_KDECORE_LIBS}
  ${KDE4_KDEUI_LIBS}
  ${TELEPATHY_QT4_LIBRARIES}
  ktpcommoninternalsprivate
  ktpmodelsprivate
)

if (KPEOPLE_FOUND)

include_directories(${KPEOPLE_INCLUDES})


kde4_add_executable(ktp_kpeople_list_model_view
    ${model_view_SRCS}
    kpeople-model-view-main.cpp
)

target_link_libraries(ktp_kpeople_list_model_view
  ${QT_QTTEST_LIBRARY}
  ${KDE4_KDECORE_LIBS}
  ${KDE4_KDEUI_LIBS}
  ${TELEPATHY_QT4_LIBRARIES}
  ${KPEOPLE_LIBS}
  ktpcommoninternalsprivate
  ktpmodelsprivate
)

endif (KPEOPLE_FOUND)



Add if kpeople guard around building kpeople test
Add if kpeople guard around building kpeople test

Reviewed-by: David Edmundson
