Another try with R tests

This commit is contained in:
Ian Bell
2015-07-01 23:40:06 -06:00
parent 75ac8d8ec8
commit 61ff9e2d7c

View File

@@ -940,8 +940,9 @@ if (COOLPROP_R_MODULE)
install (TARGETS ${app_name} DESTINATION R/${CMAKE_SYSTEM_NAME}_${BITNESS}bit)
enable_testing()
set(R_TEST_COMMAND "${R_EXEC} -f Example.R")
add_test(NAME R_test
COMMAND "${R_EXEC} -f Example.R"
COMMAND ${R_TEST_COMMAND}
WORKING_DIRECTORY {CMAKE_CURRENT_BINARY_DIR})
endif()