Fix building unit tests targetting windows

Fixes MSVC's LNK4217 warnings and MinGW errors.
This commit is contained in:
Hyunjin Song
2018-11-13 19:33:28 +09:00
parent d9b91338ea
commit 244b70b4c8
4 changed files with 16 additions and 6 deletions

View File

@@ -19,5 +19,8 @@ ADD_EXECUTABLE(tests
src/tracks/AutomationTrackTest.cpp
)
TARGET_COMPILE_DEFINITIONS(tests
PRIVATE $<TARGET_PROPERTY:lmmsobjs,INTERFACE_COMPILE_DEFINITIONS>
)
TARGET_LINK_LIBRARIES(tests ${QT_LIBRARIES} ${QT_QTTEST_LIBRARY})
TARGET_LINK_LIBRARIES(tests ${LMMS_REQUIRED_LIBS})