Skip to content
Snippets Groups Projects
Commit d6486efa authored by Guilherme Amadio's avatar Guilherme Amadio
Browse files

Update CMakeLists.txt for R bindings

- Do not use globbing
- Use new formatting style
- Propagate compile options and include directories
parent 42c0810f
No related branches found
No related tags found
No related merge requests found
############################################################################
# CMakeLists.txt file for building ROOT R package
############################################################################
#Autor: Omar Andres Zapata Mesa 31/05/2013,14/07/2014
set(libname RInterface)
include_directories(${R_INCLUDE_DIRS})
ROOT_ADD_CXX_FLAG(CMAKE_CXX_FLAGS -Wno-overloaded-virtual)
set(R_HEADERS ${CMAKE_SOURCE_DIR}/bindings/r/inc/TRInterface.h
${CMAKE_SOURCE_DIR}/bindings/r/inc/TRObject.h
${CMAKE_SOURCE_DIR}/bindings/r/inc/TRFunctionExport.h
${CMAKE_SOURCE_DIR}/bindings/r/inc/TRFunctionImport.h
${CMAKE_SOURCE_DIR}/bindings/r/inc/TRInternalFunction.h
${CMAKE_SOURCE_DIR}/bindings/r/inc/TRDataFrame.h
${CMAKE_SOURCE_DIR}/bindings/r/inc/RExports.h)
ROOT_STANDARD_LIBRARY_PACKAGE(RInterface
HEADERS ${R_HEADERS}
LIBRARIES ${R_LIBRARIES} readline
DICTIONARY_OPTIONS -I${R_INCLUDE_DIR}
DEPENDENCIES Core Matrix Thread RIO)
target_include_directories(RInterface BEFORE PRIVATE ${R_INCLUDE_DIR})
HEADERS
RExports.h
TRDataFrame.h
TRFunctionExport.h
TRFunctionImport.h
TRInterface.h
TRInternalFunction.h
TRObject.h
SOURCES
src/RExports.cxx
src/TRCompletion.cxx
src/TRDataFrame.cxx
src/TRFunctionExport.cxx
src/TRFunctionImport.cxx
src/TRInterface.cxx
src/TRObject.cxx
DICTIONARY_OPTIONS
-I${R_INCLUDE_DIR}
-I${R_Rcpp_INCLUDE_DIR}
-I${R_RInside_INCLUDE_DIR}
DEPENDENCIES
Core
Matrix
RIO
Thread
)
target_compile_options(RInterface PUBLIC -Wno-cast-function-type -Wno-overloaded-virtual)
target_include_directories(RInterface BEFORE PUBLIC ${R_INCLUDE_DIRS})
target_link_libraries(RInterface PUBLIC ${R_LIBRARIES} readline)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment