project(say_tests) include("NewTest.cmake") include(${CMAKE_SOURCE_DIR}/src/CMake/Compiler.cmake) if(POLICY CMP0071) cmake_policy(SET CMP0071 NEW) endif() find_package(Qt5 COMPONENTS Core Gui Sql Network Xml Test REQUIRED) set(CMAKE_AUTOMOC ON) set(CMAKE_AUTOUIC ON) set(CMAKE_INCLUDE_CURRENT_DIR ON) file(COPY ${CMAKE_SOURCE_DIR}/resources/player.db DESTINATION ${CMAKE_CURRENT_BINARY_DIR} ) include_directories(${Qt5Core_INCLUDE_DIRS}) include_directories(${Qt5Gui_INCLUDE_DIRS}) include_directories(${Qt5Xml_INCLUDE_DIRS}) include_directories(${Qt5Sql_INCLUDE_DIRS}) include_directories(${Qt5Network_INCLUDE_DIRS}) include_directories(${Qt5Test_INCLUDE_DIRS}) include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../src) add_definitions(${Qt5Core_DEFINITIONS}) add_definitions(${QT_DEFINITIONS}) include_directories(${CMAKE_SOURCE_DIR}/src) include_directories(${CMAKE_BINARY_DIR}/src) include_directories(${CMAKE_BINARY_DIR}/src/3rdParty) include_directories(${CMAKE_BINARY_DIR}/src/3rdParty/taglib) include_directories(${CMAKE_SOURCE_DIR}/test) include_directories(${CMAKE_BINARY_DIR}/test) set(RESOURCES resources/Test.qrc ${CMAKE_CURRENT_SOURCE_DIR}/../resources/Database.qrc ${CMAKE_CURRENT_SOURCE_DIR}/../resources/Resources.qrc ) qt5_add_resources(RESOURCES_RCC ${RESOURCES} ) # With resources new_test(Covers/CoverLocationTest.cpp) new_test(Database/PodcastTest.cpp) new_test(Database/AlbumTest.cpp) new_test(Database/LibraryDatabaseTest.cpp) new_test(Library/ImportCacheTest.cpp) new_test(Playlist/PlaylistTest.cpp Playlist/PlaylistTestUtils.cpp) new_test(Playlist/PlaylistTrackModifyTest.cpp Playlist/PlaylistTestUtils.cpp) new_test(StreamRecorder/StreamRecorderTest.cpp) new_test(StreamRecorder/StreamRecorderUtilsTest.cpp) new_test(Tagging/AlbumArtistTest.cpp Tagging/AbstractTaggingTest.cpp) new_test(Tagging/DiscnumberTest.cpp Tagging/AbstractTaggingTest.cpp) new_test(Tagging/EditorTest.cpp) new_test(Tagging/LyricsTest.cpp Tagging/AbstractTaggingTest.cpp) new_test(Tagging/RatingTest.cpp Tagging/AbstractTaggingTest.cpp) new_test(Tagging/TagFromPathTest.cpp) new_test(Util/CryptTest.cpp) new_test(Util/FileHelperTest.cpp) new_test(Util/LanguageKeyTest.cpp) new_test(Util/LanguageUtilTest.cpp) new_test(Util/MetaDataTest.cpp) new_test(Util/MetaDataListTest.cpp) new_test(Util/SettingsTest.cpp) new_test(Util/SetTest.cpp)