From af51115a214eeeb181d992cc71f1e3ea603ca131 Mon Sep 17 00:00:00 2001 From: Ian Bell Date: Wed, 1 Jul 2015 22:18:51 -0600 Subject: [PATCH] Add tests for R, fix(?) octave --- CMakeLists.txt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6b55b1a0..77372cd5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -495,7 +495,7 @@ if (COOLPROP_OCTAVE_MODULE) MESSAGE(STATUS "COOLPROP_OCTAVE_USING_CLANG = ${COOLPROP_OCTAVE_USING_CLANG}") string(STRIP "${COOLPROP_OCTAVE_USING_CLANG}" COOLPROP_OCTAVE_USING_CLANG) STRING(LENGTH "${COOLPROP_OCTAVE_USING_CLANG}" LEN) - if (LEN GREATER 0) + if (${LEN} GREATER 0) message(STATUS "Using -stdlib=libc++") set_target_properties(CoolProp PROPERTIES LINK_FLAGS "-stdlib=libc++") else() @@ -938,6 +938,12 @@ if (COOLPROP_R_MODULE) install (FILES "${CMAKE_CURRENT_BINARY_DIR}/Example.R" DESTINATION R) install (FILES "${CMAKE_CURRENT_BINARY_DIR}/CoolProp.R" DESTINATION R) install (TARGETS ${app_name} DESTINATION R/${CMAKE_SYSTEM_NAME}_${BITNESS}bit) + + enable_testing() + add_test(NAME R_test + COMMAND ${R_EXEC} -f Example.R + WORKING_DIRECTORY {CMAKE_CURRENT_BINARY_DIR}) + endif() if (COOLPROP_MATLAB_MODULE)