source: tol/toltcl/generic/CMakeLists.txt @ 87ce00f

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

refs #1899, recogemos el numero de version desde el CMakeLists.txt

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

  • Property mode set to 100644
File size: 1.4 KB
Line 
1add_definitions( -DTCL_THREADS
2  -D__TOLTCL_MAJOR_VERSION__=${TOLTCL_VERSION_MAJOR}
3  -D__TOLTCL_MINOR_VERSION__=${TOLTCL_VERSION_MINOR}
4
5include_directories( ${TCL_INCLUDE_PATH} ${TOL_INCLUDE_DIR} ${CMAKE_CURRENT_SOURCE_DIR} )
6 
7message( STATUS "Using TCL_INCLUDE_PATH = ${TCL_INCLUDE_PATH}" )
8message( STATUS "Using TCL_STUB_LIBRARY = ${TCL_STUB_LIBRARY}" )
9message( STATUS "Using TCL_LIBRARY = ${TCL_LIBRARY}" )
10
11add_library( toltcl SHARED
12  crash.c toltcl.c pool.cpp tclutils.cpp tolaccess.cpp tolsergrp.cpp
13  toltableset.cpp toltime.cpp
14)
15
16set_target_properties( toltcl PROPERTIES OUTPUT_NAME
17  toltcl${TOLTCL_VERSION_MAJOR}.${TOLTCL_VERSION_MINOR} )
18
19set_target_properties( toltcl PROPERTIES COMPILE_FLAGS "-DBUILD_TOLTCL -DUSE_TCL_STUBS")
20
21if( WIN32 )
22  target_link_libraries( toltcl
23    ${TCL_STUB_LIBRARY} ${TOL_LIBRARY} )
24else( WIN32 )
25  target_link_libraries( toltcl
26    ${TCL_STUB_LIBRARY} )
27endif( WIN32 )
28
29add_executable( tolsh tolsh.c )
30if( WIN32 )
31  target_link_libraries( tolsh ${TCL_LIBRARY} )
32else( WIN32 )
33  target_link_libraries( tolsh ${TCL_LIBRARY} ${TOL_LIBRARY} )
34endif( WIN32 )
35
36message( STATUS "TOLTCL_DEST_DIR = ${TOLTCL_DEST_DIR}" )
37install( TARGETS tolsh RUNTIME DESTINATION "bin" )
38if( WIN32 )
39  install( TARGETS toltcl RUNTIME DESTINATION "${TOLTCL_DEST_DIR}" )
40else( WIN32 )
41  install( TARGETS toltcl RUNTIME LIBRARY DESTINATION "${TOLTCL_DEST_DIR}" )
42endif( WIN32 )
Note: See TracBrowser for help on using the repository browser.