- Timestamp:
- Feb 13, 2015, 4:11:47 PM (12 years ago)
- Branches:
- 1941-docker-image-to-test, devel, master
- Children:
- b89e483
- Parents:
- d008ac1
- Location:
- toltcl
- Files:
-
- 2 added
- 4 edited
-
CMakeLists.txt (modified) (2 diffs)
-
generic/CMakeLists.txt (modified) (2 diffs)
-
generic/tolsh.c (added)
-
library/CMakeLists.txt (modified) (1 diff)
-
library/pkgIndex.tcl.in (modified) (1 diff)
-
library/tolsh.tcl (added)
Legend:
- Unmodified
- Added
- Removed
-
toltcl/CMakeLists.txt
rd008ac1 re64ad71 22 22 # look for tcl 23 23 if ( WIN32 AND TOL_PREFIX_PATH ) 24 set( TCL_LIBRARY_PATH "${TOL_PREFIX_PATH}/lib" ) 24 25 find_library( TCL_STUB_LIBRARY 25 26 NAMES "libtclstub84" "libtclstub85" "libtclstub86" 26 PATHS "${TOL_PREFIX_PATH}/lib"27 PATHS ${TCL_LIBRARY_PATH} 27 28 NO_DEFAULT_PATH 28 29 ) … … 43 44 message( STATUS ${TCL_STUB_LIBRARY} ) 44 45 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 ) 46 48 message( STATUS "Using CMAKE_INSTALL_PREFIX = ${CMAKE_INSTALL_PREFIX}" ) 47 49 else( TCL_FOUND ) -
toltcl/generic/CMakeLists.txt
rd008ac1 re64ad71 1 1 add_definitions( -DBUILD_TOLTCL -DUSE_TCL_STUBS -DTCL_THREADS ) 2 include_directories( ${TCL_INCLUDE_PATH} ) 3 2 include_directories( ${TCL_INCLUDE_PATH} ${TOL_INCLUDE_DIR} ${CMAKE_CURRENT_SOURCE_DIR} ) 3 4 message( STATUS "Using TCL_INCLUDE_PATH = ${TCL_INCLUDE_PATH}" ) 5 message( STATUS "Using TCL_STUB_LIBRARY = ${TCL_STUB_LIBRARY}" ) 6 message( STATUS "Using TCL_LIBRARY = ${TCL_LIBRARY}" ) 7 8 # use, i.e. don't skip the full RPATH for the build tree 9 SET(CMAKE_SKIP_BUILD_RPATH FALSE) 10 11 # when building, don't use the install RPATH already 12 # (but later on when installing) 13 SET(CMAKE_BUILD_WITH_INSTALL_RPATH FALSE) 14 15 SET(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 19 SET(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 23 LIST(FIND CMAKE_PLATFORM_IMPLICIT_LINK_DIRECTORIES "${CMAKE_INSTALL_PREFIX}/lib" isSystemDir) 24 IF("${isSystemDir}" STREQUAL "-1") 25 SET(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib") 26 ENDIF("${isSystemDir}" STREQUAL "-1") 27 4 28 add_library( toltcl SHARED 5 29 crash.c toltcl.c pool.cpp tclutils.cpp tolaccess.cpp tolsergrp.cpp … … 7 31 ) 8 32 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}" )13 33 target_link_libraries( toltcl 14 34 ${TCL_STUB_LIBRARY} ${TOL_LIBRARY} ) 15 35 36 add_executable( tolsh tolsh.c ) 37 target_link_libraries( tolsh ${TCL_LIBRARY} ) 38 39 install( TARGETS tolsh RUNTIME DESTINATION "bin" ) 16 40 if( WIN32 ) 17 41 install( TARGETS toltcl RUNTIME DESTINATION "${TOLTCL_DEST_DIR}" ) -
toltcl/library/CMakeLists.txt
rd008ac1 re64ad71 12 12 ) 13 13 14 install( FILES "${CMAKE_CURRENT_BINARY_DIR}/pkgIndex.tcl" toltcl.tcl 14 install( FILES "${CMAKE_CURRENT_BINARY_DIR}/pkgIndex.tcl" toltcl.tcl tolsh.tcl 15 15 COMPONENT RUNTIME DESTINATION "${TOLTCL_DEST_DIR}" ) 16 16 -
toltcl/library/pkgIndex.tcl.in
rd008ac1 re64ad71 25 25 } ] 26 26 27 package 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.
