mirror of
https://bitbucket.org/smil3y/kde-extraapps.git
synced 2025-02-25 03:12:53 +00:00
39 lines
1,018 B
CMake
39 lines
1,018 B
CMake
include_directories(
|
|
${CMAKE_CURRENT_SOURCE_DIR}
|
|
${CMAKE_CURRENT_SOURCE_DIR}/../src
|
|
${CMAKE_CURRENT_BINARY_DIR}/../src
|
|
${CMAKE_CURRENT_SOURCE_DIR}/../src/lib
|
|
${CMAKE_CURRENT_SOURCE_DIR}/../src/modes/system
|
|
${CMAKE_CURRENT_SOURCE_DIR}/../src/modes/kernel
|
|
)
|
|
|
|
macro(ksystemlog_unit_tests)
|
|
foreach(unitTest ${ARGN})
|
|
set(unitTest_sources
|
|
${unitTest}.cpp
|
|
testUtil.cpp
|
|
)
|
|
|
|
qt4_add_resources(unitTest_sources testResources.qrc)
|
|
|
|
kde4_add_test(ksystemlog-${unitTest} ${unitTest_sources})
|
|
|
|
target_link_libraries(ksystemlog-${unitTest}
|
|
${QT_QTTEST_LIBRARY}
|
|
${KDE4_KDEUI_LIBS}
|
|
${KDE4_KIO_LIBS}
|
|
${KDE4_KDECORE_LIBS}
|
|
ksystemlog_library
|
|
)
|
|
endforeach(unitTest)
|
|
endmacro(ksystemlog_unit_tests)
|
|
|
|
ksystemlog_unit_tests(
|
|
logModeFactoryTest
|
|
systemAnalyzerTest
|
|
kernelAnalyzerTest
|
|
|
|
# Not real unit tests
|
|
kioLogFileReaderTest
|
|
findIncompatibleKioTest
|
|
)
|