Changeset e64ad71 in tol for toltcl


Ignore:
Timestamp:
Feb 13, 2015, 4:11:47 PM (12 years ago)
Author:
Jorge Pérez <josp.jorge@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
b89e483
Parents:
d008ac1
Message:

refs #1812, refs #1818, tolsh es parte de toltcl a partir de ahora

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

Location:
toltcl
Files:
2 added
4 edited

Legend:

Unmodified
Added
Removed
  • toltcl/CMakeLists.txt

    rd008ac1 re64ad71  
    2222# look for tcl
    2323if ( WIN32 AND TOL_PREFIX_PATH )
     24  set( TCL_LIBRARY_PATH "${TOL_PREFIX_PATH}/lib" )
    2425  find_library( TCL_STUB_LIBRARY
    2526      NAMES "libtclstub84" "libtclstub85" "libtclstub86"
    26       PATHS "${TOL_PREFIX_PATH}/lib"
     27      PATHS ${TCL_LIBRARY_PATH}
    2728      NO_DEFAULT_PATH
    2829    )
    … …  
    4344  message( STATUS ${TCL_STUB_LIBRARY} )
    4445  message( STATUS ${TCL_INCLUDE_PATH} )
    45   get_filename_component( CMAKE_INSTALL_PREFIX ${TCL_INCLUDE_PATH} PATH )
     46  message( STATUS ${TCL_LIBRARY_PATH} )
     47  get_filename_component( CMAKE_INSTALL_PREFIX ${TCL_LIBRARY_PATH} PATH )
    4648  message( STATUS "Using CMAKE_INSTALL_PREFIX = ${CMAKE_INSTALL_PREFIX}" )
    4749else( TCL_FOUND )
  • toltcl/generic/CMakeLists.txt

    rd008ac1 re64ad71  
    11add_definitions( -DBUILD_TOLTCL -DUSE_TCL_STUBS -DTCL_THREADS )
    2 include_directories( ${TCL_INCLUDE_PATH} )
    3  
     2include_directories( ${TCL_INCLUDE_PATH} ${TOL_INCLUDE_DIR} ${CMAKE_CURRENT_SOURCE_DIR} )
     3 
     4message( STATUS "Using TCL_INCLUDE_PATH = ${TCL_INCLUDE_PATH}" )
     5message( STATUS "Using TCL_STUB_LIBRARY = ${TCL_STUB_LIBRARY}" )
     6message( STATUS "Using TCL_LIBRARY = ${TCL_LIBRARY}" )
     7
     8# use, i.e. don't skip the full RPATH for the build tree
     9SET(CMAKE_SKIP_BUILD_RPATH  FALSE)
     10
     11# when building, don't use the install RPATH already
     12# (but later on when installing)
     13SET(CMAKE_BUILD_WITH_INSTALL_RPATH FALSE)
     14
     15SET(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib")
     16
     17# add the automatically determined parts of the RPATH
     18# which point to directories outside the build tree to the install RPATH
     19SET(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
     20
     21
     22# the RPATH to be used when installing, but only if it's not a system directory
     23LIST(FIND CMAKE_PLATFORM_IMPLICIT_LINK_DIRECTORIES "${CMAKE_INSTALL_PREFIX}/lib" isSystemDir)
     24IF("${isSystemDir}" STREQUAL "-1")
     25   SET(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib")
     26ENDIF("${isSystemDir}" STREQUAL "-1")
     27
    428add_library( toltcl SHARED
    529  crash.c toltcl.c pool.cpp tclutils.cpp tolaccess.cpp tolsergrp.cpp
    … …  
    731)
    832
    9 include_directories( ${TCL_INCLUDE_PATH} ${TOL_INCLUDE_DIR} ${CMAKE_CURRENT_SOURCE_DIR} )
    10 
    11 message( STATUS "Using TCL_INCLUDE_PATH = ${TCL_INCLUDE_PATH}" )
    12 message( STATUS "Using TCL_STUB_LIBRARY = ${TCL_STUB_LIBRARY}" )
    1333target_link_libraries( toltcl
    1434  ${TCL_STUB_LIBRARY} ${TOL_LIBRARY} )
    1535
     36add_executable( tolsh tolsh.c )
     37target_link_libraries( tolsh ${TCL_LIBRARY} )
     38
     39install( TARGETS tolsh RUNTIME DESTINATION "bin" )
    1640if( WIN32 )
    1741  install( TARGETS toltcl RUNTIME DESTINATION "${TOLTCL_DEST_DIR}" )
  • toltcl/library/CMakeLists.txt

    rd008ac1 re64ad71  
    1212  )
    1313
    14 install( FILES "${CMAKE_CURRENT_BINARY_DIR}/pkgIndex.tcl" toltcl.tcl
     14install( FILES "${CMAKE_CURRENT_BINARY_DIR}/pkgIndex.tcl" toltcl.tcl tolsh.tcl
    1515  COMPONENT RUNTIME DESTINATION "${TOLTCL_DEST_DIR}" )
    1616
  • toltcl/library/pkgIndex.tcl.in

    rd008ac1 re64ad71  
    2525    } ]
    2626
     27package ifneeded TolshApp @TOLTCL_VERSION_MAJOR@.@TOLTCL_VERSION_MINOR@ \
     28    [ string map [list %d $dir] {
     29      source [ file join {%d} tolsh.tcl ]
     30    } ]
Note: See TracChangeset for help on using the changeset viewer.