Commit cac44e1e67f0757d5b75e25cd1cc3667152be304

  • Tree SHA1: c6d818a
  • Parent SHA1: e87bc5d (Tests for DirectoryLoader, but non functional: how to wait for a signal to appear in a test slot?)
  • raw diff | raw patch
With this tests should not influence release builds at all. Built with and without debugfull, seems to work.
  
125125
126126 include_directories (${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} ${KDE4_INCLUDES} ${TAGLIB_INCLUDES})
127127
128if(CMAKE_BUILD_TYPE MATCHES debugfull)
128129 add_subdirectory( tests )
130endif(CMAKE_BUILD_TYPE MATCHES debugfull)
131
129132 add_subdirectory( src )
130133
131134 macro_display_feature_log()
  
565565 widgets/BookmarkPopup.cpp
566566 GlobalCollectionActions.cpp
567567 GlobalCurrentTrackActions.cpp
568 ../tests/playlistmanager/TestPlaylistManager.cpp
569 ../tests/TestAmarok.cpp
570 ../tests/TestCaseConverter.cpp
571 ../tests/TestDirectoryLoader.cpp
572 ../tests/TestSmartPointerList.cpp
573568)
574569
570if(CMAKE_BUILD_TYPE MATCHES debugfull)
571 set(amaroklib_LIB_SRCS
572 ${amaroklib_LIB_SRCS}
573 ../tests/playlistmanager/TestPlaylistManager.cpp
574 ../tests/TestAmarok.cpp
575 ../tests/TestCaseConverter.cpp
576 ../tests/TestDirectoryLoader.cpp
577 ../tests/TestSmartPointerList.cpp
578 )
579endif(CMAKE_BUILD_TYPE MATCHES debugfull)
580
575581qt4_add_dbus_adaptor( amaroklib_LIB_SRCS dbus/org.freedesktop.MediaPlayer.root.xml RootDBusHandler.h Amarok::RootDBusHandler RootAdaptor RootAdaptor)
576582qt4_add_dbus_adaptor( amaroklib_LIB_SRCS dbus/org.freedesktop.MediaPlayer.player.xml PlayerDBusHandler.h Amarok::PlayerDBusHandler PlayerAdaptor PlayerAdaptor)
577583qt4_add_dbus_adaptor( amaroklib_LIB_SRCS dbus/org.freedesktop.MediaPlayer.tracklist.xml TracklistDBusHandler.h Amarok::TracklistDBusHandler TracklistAdaptor TracklistAdaptor)
615615 ${TAGLIB-EXTRAS_LIBRARIES}
616616 ${QT_QTSCRIPT_LIBRARY}
617617 ${QT_QTSQL_LIBRARY}
618 ${QT_QTTEST_LIBRARY}
619618 ${QT_QTWEBKIT_LIBRARY}
620619 ${CMAKE_THREAD_LIBS_INIT}
621620 ${EXTRA_LIBS}
622621 amarokpud
623622)
623
624if(CMAKE_BUILD_TYPE MATCHES debugfull)
625 target_link_libraries(amaroklib ${QT_QTTEST_LIBRARY})
626endif(CMAKE_BUILD_TYPE MATCHES debugfull)
624627
625628if(WIN32)
626629 target_link_libraries(amaroklib ${QT_QTWEBKIT_LIBRARY})