source: tol/rtol/source/CMakeLists.txt @ 1bebe88

1941-docker-image-to-testdevel
Last change on this file since 1bebe88 was d5e4e94, checked in by Jorge Pérez <josp.jorge@…>, 11 years ago

refs #1904, en linux solo necesitamos requerir TOL, para windows hay que especificar todas las dependencias.

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

  • Property mode set to 100644
File size: 823 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
10SET(CMAKE_INSTALL_RPATH "$ORIGIN")
11
12add_library( tolRlink SHARED tolRlink.cpp )
13
14set_target_properties( tolRlink PROPERTIES PREFIX "")
15
16target_link_libraries( tolRlink ${TOL_LIBRARIES} )
17if( WIN32 )
18  target_link_libraries( tolRlink ${R_LIBRARY_BASE} )
19endif( WIN32 )
20
21# message( STATUS "RTOL_DEST_DIR = ${RTOL_DEST_DIR}" )
22if( WIN32 )
23  install( TARGETS tolRlink RUNTIME DESTINATION "bin" )
24else( WIN32 )
25  install( TARGETS tolRlink RUNTIME LIBRARY DESTINATION "lib" )
26endif( WIN32 )
27
Note: See TracBrowser for help on using the repository browser.