Add a working directory for PVR lib tests

Unfortunately, the WORKING_DIRECTORY directive for ADD_TEST seems to be broken as of CMake 2.8.10, fortunately there was a mail thread about this issue in 2.6 so I was able to implement the workaround.
This commit is contained in:
Pavel Krajcevski 2013-09-04 20:43:49 -04:00
parent 6149c0af3a
commit 7b72a84d87

View File

@ -97,5 +97,8 @@ IF(PVRTEXLIB_FOUND)
TARGET_LINK_LIBRARIES(${TEST_NAME} gtest_main) TARGET_LINK_LIBRARIES(${TEST_NAME} gtest_main)
TARGET_LINK_LIBRARIES(${TEST_NAME} ${PVRTEXLIB_LIBRARIES} ) TARGET_LINK_LIBRARIES(${TEST_NAME} ${PVRTEXLIB_LIBRARIES} )
ADD_TEST(${TEST_NAME} ${TEST_NAME}) ADD_TEST(${TEST_NAME}
${CMAKE_COMMAND} -E chdir ${CMAKE_BINARY_DIR}
${CMAKE_CURRENT_BINARY_DIR}/${TEST_NAME}
)
ENDIF(PVRTEXLIB_FOUND) ENDIF(PVRTEXLIB_FOUND)