Warning, /multimedia/amarok/tests/core/collections/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 add_subdirectory( support ) 0002 0003 include_directories( 0004 .. 0005 ${AMAROK_SOURCE_TREE} 0006 ${AMAROK_SOURCE_TREE}/collection 0007 ${AMAROK_SOURCE_TREE}/meta 0008 ${CMAKE_BINARY_DIR}/src 0009 ${AMAROK_COLLECTION_SUPPORT_DIR} 0010 ) 0011 include_directories(SYSTEM 0012 ${GOOGLEMOCK_INCLUDE_DIR} 0013 ) 0014 0015 #------------------------ Test CollectionLocation ----------------------------- 0016 0017 set( testcollectionlocation_SRCS 0018 CollectionLocationTest.cpp 0019 ${GOOGLEMOCK_SRCS} 0020 ) 0021 0022 add_executable( testcollectionlocation ${testcollectionlocation_SRCS} ) 0023 add_test(NAME testcollectionlocation COMMAND $<TARGET_FILE:testcollectionlocation>) 0024 ecm_mark_as_test(testcollectionlocation) 0025 0026 add_dependencies( testcollectionlocation amarokconfig_h ) 0027 add_dependencies( testcollectionlocation amarokcore) 0028 add_dependencies( testcollectionlocation amaroklib) 0029 0030 if(APPLE) 0031 set_target_properties(testcollectionlocation PROPERTIES LINK_FLAGS "-undefined dynamic_lookup") 0032 endif() 0033 0034 target_link_libraries(testcollectionlocation 0035 amarokcore 0036 amaroklib 0037 KF5::KIOCore 0038 Qt5::Test 0039 ${GOOGLEMOCK_LIBRARIES}) 0040 0041 #------------------------ Test Collection ----------------------------- 0042 0043 set( testcollection_SRCS TestCollection.cpp ) 0044 add_executable( testcollection ${testcollection_SRCS} ) 0045 add_test(NAME testcollection COMMAND $<TARGET_FILE:testcollection>) 0046 ecm_mark_as_test(testcollection) 0047 target_link_libraries( testcollection Qt5::Test amarokcore ) 0048 0049 #------------------------ Test QueryMaker ----------------------------- 0050 0051 set( testquerymaker_SRCS TestQueryMaker.cpp ../../mocks/MockQueryMaker.cpp ) 0052 add_executable( testquerymaker ${testquerymaker_SRCS} ) 0053 add_test(NAME testquerymaker COMMAND $<TARGET_FILE:testquerymaker>) 0054 ecm_mark_as_test(testquerymaker) 0055 target_link_libraries( testquerymaker Qt5::Gui Qt5::Test amarokcore )