Fix tests linkage

I wasn't linking the tests against the qrc library, which made trying to
load the xslt transformation files for the parse test fail.

Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Tomaz Canabrava 2016-03-24 11:44:37 -03:00 committed by Dirk Hohndel
parent f298802b99
commit 5f9df02ffc

View file

@ -1,6 +1,6 @@
# QTest based tests
macro(TEST NAME FILE)
add_executable(${NAME} ${FILE} )
add_executable(${NAME} ${FILE} ${SUBSURFACE_RESOURCES} )
target_link_libraries(${NAME} subsurface_corelib ${QT_TEST_LIBRARIES} ${SUBSURFACE_LINK_LIBRARIES} )
add_test(NAME ${NAME} COMMAND $<TARGET_FILE:${NAME}>)
endmacro()