From bf9460e55e517c52bc3ad32e7423a99121de4ffe Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sat, 14 Mar 2015 18:04:53 -0700 Subject: Add Subsurface resources to tests This way we can use the resources from within the tests, for example to load XSLT files. Signed-off-by: Dirk Hohndel --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1ee76f2cb..b197bfc3e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -259,7 +259,7 @@ ADD_DEPENDENCIES(subsurface_generated_ui version) ADD_DEPENDENCIES(subsurface_corelib version) MACRO(test NAME FILE) - ADD_EXECUTABLE(${NAME} tests/${FILE}) + ADD_EXECUTABLE(${NAME} tests/${FILE} ${SUBSURFACE_RESOURCES}) TARGET_LINK_LIBRARIES(${NAME} subsurface_corelib ${QT_TEST_LIBRARIES} ${SUBSURFACE_LINK_LIBRARIES} -lzip -ldivecomputer) ADD_TEST(NAME ${NAME} COMMAND ${NAME}) ENDMACRO() -- cgit v1.2.3-70-g09d2