source: tol/toltcl/ThirdParty/CMakeLists.txt @ 6755180

1941-docker-image-to-testdevel
Last change on this file since 6755180 was 48833d3, checked in by Pedro Gea <pgea@…>, 11 years ago

Refs #1880, #1899
Se incorporan las opciones de compilación de las "ThirdParty" en build.sh.
Se corrige el mecanismo de inclusión de estos paquetes de tcl/Tk en la instalación. El mecanismo anterior basado en lib_children fallaba al no existir aún los directorios en tiempo de cmake.

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

  • Property mode set to 100644
File size: 848 bytes
Line 
1include(ExternalProject)
2
3get_filename_component( TCL_LIB_DIR ${TCL_LIBRARY} DIRECTORY )
4get_filename_component( TK_LIB_DIR ${TK_LIBRARY} DIRECTORY )
5
6if( NOT TCLCURL_VERSION )
7  set( TCLCURL_VERSION 7.22.0 )
8endif( )
9
10if( BUILD_TCLCURL )
11  message( STATUS "Third party TclCurl${TCLCURL_VERSION} will be built." )
12  set( tclcurl_tgz "TclCurl-${TCLCURL_VERSION}.tar.gz" )
13  ExternalProject_Add( tclcurl
14    URL ${CMAKE_CURRENT_SOURCE_DIR}/${tclcurl_tgz}
15    PREFIX ${CMAKE_CURRENT_BINARY_DIR}
16    CONFIGURE_COMMAND ${CMAKE_CURRENT_BINARY_DIR}/src/tclcurl/configure
17    --prefix=${CMAKE_CURRENT_BINARY_DIR}
18    --exec-prefix=${CMAKE_CURRENT_BINARY_DIR}
19    --with-tcl=${TCL_LIB_DIR}
20    BUILD_IN_SOURCE 1
21    )
22  install( DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/lib/TclCurl${TCLCURL_VERSION} COMPONENT RUNTIME DESTINATION lib )
23endif( BUILD_TCLCURL )
24
Note: See TracBrowser for help on using the repository browser.