include(CommonModularInterface)
SET(CMAKE_CXX_FLAGS "${R_CXX_FLAGS} ${CMAKE_CXX_FLAGS}")

GENERATE_MODULAR_TARGET(r ${CMAKE_CURRENT_SOURCE_DIR} ${R_LIBRARIES})

set(CPACK_COMPONENT_R_DISPLAY_NAME "OCTAVE interface" PARENT_SCOPE)
set(CPACK_COMPONENT_R_DESCRIPTION "R modular interface of Shogun" PARENT_SCOPE)
set(CPACK_COMPONENT_R_GROUP "Runtime" PARENT_SCOPE)
set(CPACK_COMPONENT_R_DEPENDS libraries PARENT_SCOPE)
SET(CPACK_COMPONENTS_ALL ${CPACK_COMPONENTS_ALL} r PARENT_SCOPE)

include(CommonModularInterface)
SET(SWIG_CXX_COMPILER_FLAGS "${SWIG_CXX_COMPILER_FLAGS} ${R_CXX_FLAGS}")

GENERATE_MODULAR_TARGET(r ${CMAKE_CURRENT_SOURCE_DIR} ${R_LIBRARIES})

set(CPACK_COMPONENT_R_DISPLAY_NAME "OCTAVE interface" PARENT_SCOPE)
set(CPACK_COMPONENT_R_DESCRIPTION "R modular interface of Shogun" PARENT_SCOPE)
set(CPACK_COMPONENT_R_GROUP "Runtime" PARENT_SCOPE)
set(CPACK_COMPONENT_R_DEPENDS libraries PARENT_SCOPE)
SET(CPACK_COMPONENTS_ALL ${CPACK_COMPONENTS_ALL} r PARENT_SCOPE)

Fix compiler flags for RModular
Fix compiler flags for RModular
