Warning, /multimedia/amarok/tests/scanner/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 macro(add_database_test test_target test_sources)
0002     if(APPLE)
0003     #one cannot link to plugins on OS X. As a workaround, add anything relevant that goes into the mysqle plugin to each test
0004         set( test_sources_internal
0005                 ${test_sources} )
0006     endif()
0007 
0008     add_executable( ${test_target}
0009         ${test_sources}
0010         ${test_sources_internal}
0011         ${GOOGLEMOCK_SRCS}
0012         )
0013     add_test(NAME ${test_target} COMMAND $<TARGET_FILE:${test_target}>)
0014     ecm_mark_as_test(${test_target})
0015 
0016     if(APPLE)
0017         set_target_properties(${test_target} PROPERTIES LINK_FLAGS "-undefined dynamic_lookup")
0018     endif()
0019 
0020     add_dependencies( ${test_target} amarokconfig_h )
0021     add_dependencies( ${test_target} amarokcore )
0022     add_dependencies( ${test_target} amaroklib)
0023     add_dependencies( ${test_target} amarokshared)
0024 
0025     target_link_libraries(${test_target}
0026         amarokcore
0027         amaroklib
0028         amarokshared
0029         KF5::KIOCore
0030         KF5::ThreadWeaver
0031         Qt5::Test
0032         Qt5::Core
0033         ${CMAKE_DL_LIBS}
0034         ${GOOGLEMOCK_LIBRARIES})
0035 
0036 endmacro(add_database_test)
0037 
0038 
0039 include_directories(
0040   ${AMAROK_TEST_TREE}
0041   ${AMAROK_SOURCE_TREE}
0042   ${AMAROK_SOURCE_TREE}/core-impl/logger
0043   ${AMAROK_UTILITY_TREE}
0044   ${CMAKE_BINARY_DIR}/src
0045   ${CMAKE_BINARY_DIR}/tests
0046   ${AMAROK_COLLECTION_SUPPORT_DIR}
0047   )
0048 
0049 #-------------------------------- Test SqlScanManager -----------------------
0050 
0051 set( testgenericscanmanager_SRCS
0052         TestGenericScanManager.cpp
0053     )
0054 
0055 add_database_test( testgenericscanmanager "${testgenericscanmanager_SRCS}" )
0056