mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
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>
This commit is contained in:
parent
c28acce938
commit
bf9460e55e
1 changed files with 1 additions and 1 deletions
|
@ -259,7 +259,7 @@ ADD_DEPENDENCIES(subsurface_generated_ui version)
|
||||||
ADD_DEPENDENCIES(subsurface_corelib version)
|
ADD_DEPENDENCIES(subsurface_corelib version)
|
||||||
|
|
||||||
MACRO(test NAME FILE)
|
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)
|
TARGET_LINK_LIBRARIES(${NAME} subsurface_corelib ${QT_TEST_LIBRARIES} ${SUBSURFACE_LINK_LIBRARIES} -lzip -ldivecomputer)
|
||||||
ADD_TEST(NAME ${NAME} COMMAND ${NAME})
|
ADD_TEST(NAME ${NAME} COMMAND ${NAME})
|
||||||
ENDMACRO()
|
ENDMACRO()
|
||||||
|
|
Loading…
Reference in a new issue