2014-12-01 18:30:26 +00:00
|
|
|
set( EXECUTABLE_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR} )
|
|
|
|
|
|
|
|
include_directories(
|
|
|
|
${CMAKE_SOURCE_DIR}/syndication
|
|
|
|
${CMAKE_BINARY_DIR}/syndication
|
|
|
|
)
|
|
|
|
|
|
|
|
########### next target ###############
|
|
|
|
|
|
|
|
set(testlibsyndication_SRCS testlibsyndication.cpp )
|
|
|
|
|
|
|
|
|
2015-09-07 11:20:00 +03:00
|
|
|
kde4_add_manual_test(testlibsyndication ${testlibsyndication_SRCS})
|
2014-12-01 18:30:26 +00:00
|
|
|
|
2015-09-07 11:20:00 +03:00
|
|
|
target_link_libraries(testlibsyndication syndication ${KDE4_KDECORE_LIBS} )
|
2014-12-01 18:30:26 +00:00
|
|
|
|
|
|
|
########### next target ###############
|
|
|
|
|
|
|
|
set(testloader_SRCS testloader.cpp )
|
|
|
|
|
|
|
|
|
2015-09-07 11:20:00 +03:00
|
|
|
kde4_add_manual_test(testloader ${testloader_SRCS})
|
2014-12-01 18:30:26 +00:00
|
|
|
|
2015-09-07 11:20:00 +03:00
|
|
|
target_link_libraries(testloader syndication ${KDE4_KDECORE_LIBS} ${KDE4_KDEUI_LIBS} )
|
2014-12-01 18:30:26 +00:00
|
|
|
|
|
|
|
########### next target ###############
|
|
|
|
|
|
|
|
set(testpersonimpl_SRCS testpersonimpl.cpp )
|
|
|
|
|
|
|
|
|
2015-09-07 11:20:00 +03:00
|
|
|
kde4_add_test(syndication-testpersonimpl ${testpersonimpl_SRCS})
|
2014-12-01 18:30:26 +00:00
|
|
|
|
2015-09-07 11:20:00 +03:00
|
|
|
target_link_libraries(syndication-testpersonimpl syndication ${KDE4_KDECORE_LIBS} ${QT_QTTEST_LIBRARY} )
|
2014-12-01 18:30:26 +00:00
|
|
|
|
|
|
|
########### next target ###############
|
|
|
|
|
|
|
|
FILE( GLOB_RECURSE atomFiles atom/*xml )
|
|
|
|
FILE( GLOB_RECURSE rdfFiles rdf/*xml )
|
|
|
|
FILE( GLOB_RECURSE rss2Files rss2/*xml )
|
|
|
|
|
|
|
|
FOREACH( file ${atomFiles} )
|
|
|
|
ADD_TEST( \"Atom-${file}\" ${EXECUTABLE_OUTPUT_PATH}/testlibsyndication ${file} --compare ${file}.expected )
|
|
|
|
ENDFOREACH(file)
|
|
|
|
FOREACH( file ${rdfFiles} )
|
|
|
|
ADD_TEST( \"Rdf-${file}\" ${EXECUTABLE_OUTPUT_PATH}/testlibsyndication ${file} --compare ${file}.expected )
|
|
|
|
ENDFOREACH(file)
|
|
|
|
FOREACH( file ${rss2Files} )
|
|
|
|
ADD_TEST( \"Rss2-${file}\" ${EXECUTABLE_OUTPUT_PATH}/testlibsyndication ${file} --compare ${file}.expected )
|
|
|
|
ENDFOREACH(file)
|
|
|
|
|
|
|
|
########### install files ###############
|
|
|
|
|