source: tol/rtol/source/CMakeLists.txt

devel
Last change on this file was 0463dc72, checked in by Pedro Gea <pgea@…>, 11 years ago

Refs #1860
Se incorpora un RPATH a los binarios en Linux para que localicen las librerías sin necesidad de ejecutar un script estableciendo LD_LIBRARY_PATH.

git-svn-id: ​https://www.tol-project.org/svn/tolp/trunk@7171 be4846ae-f051-483a-831f-b64e7d08527f

  • Property mode set to 100644
File size: 850 bytes
Line 
1
2add_definitions( -DRTOL_VERSION=\"${RTOL_VERSION_MAJOR}.${RTOL_VERSION_MINOR}\")
3
4include_directories( ${TOL_INCLUDE_DIR} )
5include_directories( ${RINSIDE_INCLUDE_DIRS} )
6
7message( STATUS "Using TOL_INCLUDE_DIR = ${TOL_INCLUDE_DIR}" )
8message( STATUS "Using RINSIDE_INCLUDE_DIRS = ${RINSIDE_INCLUDE_DIRS}" )
9
10if( UNIX )
11  SET(CMAKE_INSTALL_RPATH "$ORIGIN")
12endif( UNIX )
13add_library( tolRlink SHARED tolRlink.cpp )
14
15set_target_properties( tolRlink PROPERTIES PREFIX "")
16
17target_link_libraries( tolRlink ${TOL_LIBRARIES} )
18if( WIN32 )
19  target_link_libraries( tolRlink ${R_LIBRARY_BASE} )
20endif( WIN32 )
21
22# message( STATUS "RTOL_DEST_DIR = ${RTOL_DEST_DIR}" )
23if( WIN32 )
24  install( TARGETS tolRlink RUNTIME DESTINATION "bin" )
25else( WIN32 )
26  install( TARGETS tolRlink RUNTIME LIBRARY DESTINATION "lib" )
27endif( WIN32 )
28
Note: See TracBrowser for help on using the repository browser.