Warning, /libraries/baloo-widgets/autotests/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 include(ECMMarkAsTest) 0002 0003 ecm_add_test(extractortest.cpp ../src/ondemandextractor.cpp ../src/widgetsdebug.cpp 0004 TEST_NAME "extractortest" 0005 LINK_LIBRARIES Qt${QT_MAJOR_VERSION}::Test 0006 KF${QT_MAJOR_VERSION}::FileMetaData 0007 ) 0008 target_include_directories(extractortest 0009 PRIVATE ${CMAKE_SOURCE_DIR}/src 0010 ${CMAKE_BINARY_DIR}/src 0011 ) 0012 0013 ecm_add_tests( 0014 filemetadatawidgettest.cpp 0015 filemetadataitemcounttest.cpp 0016 filemetadatadatedisplaytest.cpp 0017 LINK_LIBRARIES 0018 KF${QT_MAJOR_VERSION}::BalooWidgets 0019 Qt${QT_MAJOR_VERSION}::Test 0020 ) 0021 target_link_libraries(filemetadatawidgettest 0022 KF${QT_MAJOR_VERSION}::WidgetsAddons 0023 KF${QT_MAJOR_VERSION}::ConfigCore 0024 ) 0025 target_link_libraries(filemetadataitemcounttest 0026 KF${QT_MAJOR_VERSION}::ConfigCore 0027 ) 0028 0029 ecm_add_test(filemetadatamergedatatest.cpp ../src/filemetadatautil.cpp 0030 TEST_NAME "mergedatatest" 0031 LINK_LIBRARIES Qt${QT_MAJOR_VERSION}::Test 0032 KF${QT_MAJOR_VERSION}::FileMetaData 0033 ) 0034 target_include_directories(mergedatatest 0035 PRIVATE ${CMAKE_SOURCE_DIR}/src 0036 ) 0037 0038 # Set PATH so baloo_filemetadata_temp_extractor from the build directory is used 0039 if(WIN32) 0040 set_property(TEST "extractortest" PROPERTY ENVIRONMENT "PATH=${CMAKE_BINARY_DIR}/bin\\;$ENV{PATH}") 0041 set_property(TEST "filemetadatawidgettest" PROPERTY ENVIRONMENT "PATH=${CMAKE_BINARY_DIR}/bin\\;$ENV{PATH}") 0042 set_property(TEST "filemetadataitemcounttest" PROPERTY ENVIRONMENT "PATH=${CMAKE_BINARY_DIR}/bin\\;$ENV{PATH}") 0043 set_property(TEST "filemetadatadatedisplaytest" PROPERTY ENVIRONMENT "PATH=${CMAKE_BINARY_DIR}/bin\\;$ENV{PATH}") 0044 else() 0045 set_property(TEST "extractortest" PROPERTY ENVIRONMENT "PATH=${CMAKE_BINARY_DIR}/bin:$ENV{PATH}") 0046 set_property(TEST "filemetadatawidgettest" PROPERTY ENVIRONMENT "PATH=${CMAKE_BINARY_DIR}/bin:$ENV{PATH}") 0047 set_property(TEST "filemetadataitemcounttest" PROPERTY ENVIRONMENT "PATH=${CMAKE_BINARY_DIR}/bin:$ENV{PATH}") 0048 set_property(TEST "filemetadatadatedisplaytest" PROPERTY ENVIRONMENT "PATH=${CMAKE_BINARY_DIR}/bin:$ENV{PATH}") 0049 endif()