tests: pass data dir as arg

This fixes test failure on builds that happen
to be built in 'build/' instead of 'build/release'.

Use boost filesystem path type.
This commit is contained in:
redfish
2017-09-25 02:46:14 +00:00
parent 1f9058187c
commit 540d6fa3d5
5 changed files with 33 additions and 10 deletions
+1
View File
@@ -30,6 +30,7 @@
# The docs say this only affects grouping in IDEs
set(folder "tests")
set(TEST_DATA_DIR "${CMAKE_CURRENT_LIST_DIR}/data")
if (WIN32 AND STATIC)
add_definitions(-DSTATICLIB)