Argh, this was ready since yesterday and I forgot to send.
From ece9da08371710f8c1b8dfa0df34eebe822440ab Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava <[email protected]> Date: Thu, 24 Mar 2016 11:44:37 -0300 Subject: [PATCH] Fix tests linkage
I wasn't linking against the qrc library on the tests, wich made it fail truying to load a file on the binary. Signed-off-by: Tomaz Canabrava <[email protected]> --- tests/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 23642fb..a31e2c6 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -1,7 +1,7 @@ # QTest based tests macro(TEST NAME FILE) - add_executable(${NAME} ${FILE} ) - target_link_libraries(${NAME} subsurface_corelib ${QT_TEST_LIBRARIES} ${SUBSURFACE_LINK_LIBRARIES}) + 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() -- 2.7.4
_______________________________________________ subsurface mailing list [email protected] http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface
