include_directories( .. ${AMAROK_SOURCE_TREE} ${CMAKE_BINARY_DIR}/src ${AMAROK_COLLECTION_SUPPORT_DIR} ) include_directories(SYSTEM ${GOOGLEMOCK_INCLUDE_DIR} ) #------------------------ TestMasterSlaveSynchronizationJob ----------------------------- set( testmasterslave_SRCS TestMasterSlaveSynchronizationJob.cpp ${AMAROK_SOURCE_TREE}/synchronization/SynchronizationBaseJob.cpp ${AMAROK_SOURCE_TREE}/synchronization/MasterSlaveSynchronizationJob.cpp ${GOOGLEMOCK_SRCS} ) add_executable( testmasterslavesynchronizationjob ${testmasterslave_SRCS} ) add_test(NAME testmasterslavesynchronizationjob COMMAND $) ecm_mark_as_test(testmasterslavesynchronizationjob) add_dependencies( testmasterslavesynchronizationjob amarokcore ) add_dependencies( testmasterslavesynchronizationjob amaroklib ) target_link_libraries(testmasterslavesynchronizationjob amarokcore amaroklib KF${KF_MAJOR_VERSION}::KIOCore KF${KF_MAJOR_VERSION}::Solid Qt::Gui KF${KF_MAJOR_VERSION}::ThreadWeaver Qt::Test Qt::Core ${GOOGLEMOCK_LIBRARIES}) #------------------------ TestUnionJob ----------------------------- set( testunion_SRCS TestUnionJob.cpp ${AMAROK_SOURCE_TREE}/synchronization/SynchronizationBaseJob.cpp ${AMAROK_SOURCE_TREE}/synchronization/UnionJob.cpp ${GOOGLEMOCK_SRCS} ) add_executable( testunionjob ${testunion_SRCS} ) add_test(NAME testunionjob COMMAND $) ecm_mark_as_test(testunionjob) add_dependencies( testunionjob amarokcore ) add_dependencies( testunionjob amaroklib ) target_link_libraries(testunionjob amarokcore amaroklib KF${KF_MAJOR_VERSION}::KIOCore KF${KF_MAJOR_VERSION}::Solid Qt::Gui KF${KF_MAJOR_VERSION}::ThreadWeaver Qt::Test Qt::Core ${GOOGLEMOCK_LIBRARIES}) #------------------------ TestOneWaySynchronizationJob ----------------------------- set( testonewaysynchronization_SRCS TestOneWaySynchronizationJob.cpp ${AMAROK_SOURCE_TREE}/synchronization/SynchronizationBaseJob.cpp ${AMAROK_SOURCE_TREE}/synchronization/OneWaySynchronizationJob.cpp ${GOOGLEMOCK_SRCS} ) add_executable( testonewaysynchronizationjob ${testonewaysynchronization_SRCS} ) add_test(NAME testonewaysynchronizationjob COMMAND $) ecm_mark_as_test(testonewaysynchronizationjob) add_dependencies( testonewaysynchronizationjob amarokcore ) add_dependencies( testonewaysynchronizationjob amaroklib ) target_link_libraries(testonewaysynchronizationjob amarokcore amaroklib KF${KF_MAJOR_VERSION}::KIOCore KF${KF_MAJOR_VERSION}::Solid Qt::Gui KF${KF_MAJOR_VERSION}::ThreadWeaver Qt::Test Qt::Core ${GOOGLEMOCK_LIBRARIES})