44 lines
655 B
CMake
44 lines
655 B
CMake
|
|
add_executable(test-database
|
|
Artist.cpp
|
|
ArtistInfo.cpp
|
|
Artwork.cpp
|
|
AuthToken.cpp
|
|
Cluster.cpp
|
|
Common.cpp
|
|
DatabaseTest.cpp
|
|
Directory.cpp
|
|
Image.cpp
|
|
Listen.cpp
|
|
Medium.cpp
|
|
Migration.cpp
|
|
PlayListFile.cpp
|
|
Podcast.cpp
|
|
RatedArtist.cpp
|
|
RatedRelease.cpp
|
|
RatedTrack.cpp
|
|
Release.cpp
|
|
ScanSettings.cpp
|
|
StarredArtist.cpp
|
|
StarredRelease.cpp
|
|
StarredTrack.cpp
|
|
Track.cpp
|
|
TrackArtistLink.cpp
|
|
TrackBookmark.cpp
|
|
TrackEmbeddedImage.cpp
|
|
TrackFeatures.cpp
|
|
TrackList.cpp
|
|
TrackLyrics.cpp
|
|
User.cpp
|
|
)
|
|
|
|
target_link_libraries(test-database PRIVATE
|
|
lmsdatabase
|
|
GTest::GTest
|
|
)
|
|
|
|
if (NOT CMAKE_CROSSCOMPILING)
|
|
gtest_discover_tests(test-database)
|
|
endif()
|
|
|