set( EXECUTABLE_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR} )

include_directories(
  ${CMAKE_SOURCE_DIR}/messageviewer/
  ${CMAKE_BINARY_DIR}/messageviewer/
)

include(ECMAddTests)
 
set(QT_REQUIRED_VERSION "5.2.0")
find_package(Qt5Test ${QT_REQUIRED_VERSION} CONFIG REQUIRED)
include_directories( ${CMAKE_CURRENT_SOURCE_DIR}/.. )
 
ecm_add_tests(test_scamdetection.cpp NAME_PREFIX "messageviewer-" LINK_LIBRARIES messageviewer Qt5::Test)

set( scamattributetest_source scamattributetest.cpp ../scamattribute.cpp)
add_executable( scamattributetest ${scamattributetest_source})
add_test(scamattributetest scamattributetest)
ecm_mark_as_test(scamattributetest)
target_link_libraries( scamattributetest Qt5::Test Qt5::Gui KF5::AkonadiCore)

