include_directories(
    ${CMAKE_SOURCE_DIR}/noteshared
)


macro(add_noteshared_unittest _source)
  set(_test ${_source})
  get_filename_component(_name ${_source} NAME_WE)
  kde4_add_unit_test(${_name} TESTNAME noteshared-${_name} ${_test} )
  target_link_libraries( ${_name}
    noteshared
    ${QT_QTTEST_LIBRARY}
    ${QT_QTCORE_LIBRARY}
    ${QT_QTGUI_LIBRARY}
    ${KDE4_KDECORE_LIBS}
    ${KDE4_KDEUI_LIBS}
  )
endmacro ()

add_noteshared_unittest( notedisplayattributetest.cpp )

add_noteshared_unittest( notealarmattributetest.cpp )
add_noteshared_unittest( showfoldernotesattributetest.cpp )
add_noteshared_unittest( notelockattributetest.cpp )
