This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
yap-6.3/packages/real/CMakeLists.txt
Vitor Santos Costa 65ff3ed471 Smaller updates:
constant use of longjmp
conflict with python headers
win32 support
dll support
2017-02-20 15:28:46 +00:00

54 lines
939 B
CMake

# PROJECT ( YAP_REAL C )
# LIBR_FOUND
# LIBR_HOME
# LIBR_INCLUDE_DIRS
# LIBR_DOC_DIR
# LIBR_LIBRARIES
#
macro_optional_find_package (LibR ON)
macro_log_feature (R_FOUND "R"
"Use R Environment"
"http://www.r.org" FALSE)
if (LIBR_FOUND)
set (REAL_SOURCES
real.c
real.pl
)
include_directories (
${CMAKE_CURRENT_BINARY_DIR}
${LIBR_INCLUDE_DIRS}
)
set (CMAKE_REQUIRED_INCLUDES
${CMAKE_CURRENT_BINARY_DIR}
${LIBR_INCLUDE_DIRS}
)
add_library (real SHARED ${REAL_SOURCES})
target_link_libraries (real ${LIBR_LIBRARIES} ${CMAKE_DL_LIBS} libYap)
check_include_files( "Rembedded.h;Rinterface.h" HAVE_R_INTERFACE_H )
configure_file ("rconfig.h.cmake" "rconfig.h" )
install(TARGETS real
RUNTIME DESTINATION ${dlls}
ARCHIVE DESTINATION ${dlls}
LIBRARY DESTINATION ${dlls}
)
install(FILES real.pl
DESTINATION ${libpl}
)
endif (LIBR_FOUND)