diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2015-03-14 18:04:53 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-03-14 18:08:26 -0700 |
commit | bf9460e55e517c52bc3ad32e7423a99121de4ffe (patch) | |
tree | 77b2844fae7558cc4d60411efdc7dd54a89b6150 | |
parent | c28acce93826c28f174accdbce325e21804016f8 (diff) | |
download | subsurface-bf9460e55e517c52bc3ad32e7423a99121de4ffe.tar.gz |
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 <dirk@hohndel.org>
-rw-r--r-- | CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
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() |