Changeset 2d454cf in tol


Ignore:
Timestamp:
Nov 23, 2015, 2:01:25 PM (11 years ago)
Author:
Jorge Pérez <josp.jorge@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
cdd8fca
Parents:
b0cbf1a
Message:

refs #1860, limpiamos algunas macros no usadas, los archivos .h deben instalarse desde el origen del archivo y no desde el directorio tol que solo contiene enlaces simbolicos a los originales

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tol/CMakeLists.txt

    rb0cbf1a r2d454cf  
    100100
    101101set( skip_copy_headers 0 )
    102 macro( create_header_links__ )
    103   #message( "create_header_links from ${CMAKE_CURRENT_SOURCE_DIR}" )
    104   if( skip_copy_headers )
    105     message( STATUS "Skipping create_header_links for ${CMAKE_CURRENT_SOURCE_DIR}" )
    106   else( )
    107       file( GLOB headers RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" *.h *.hpp )
    108       if( WIN32 )
    109         set( cmd "copy_if_different" )
    110       else( WIN32 )
    111         set( cmd "create_symlink" )
    112       endif( WIN32 )
    113       foreach( h ${headers} )
    114         execute_process(
    115           COMMAND "${CMAKE_COMMAND}" "-E" ${cmd}
    116           "${CMAKE_CURRENT_SOURCE_DIR}/${h}"
    117           "${PROJECT_BINARY_DIR}/tol/${h}"
    118           RESULT_VARIABLE rc
    119           OUTPUT_VARIABLE output
    120           ERROR_VARIABLE error
    121           )
    122        endforeach( h )
    123   endif( ) 
    124 endmacro( create_header_links__ )
    125 
    126 macro( create_header_links2 )
    127   if( WIN32 )
    128     set( cmd "copy" )
    129   else( WIN32 )
    130     set( cmd "create_symlink" )
    131   endif( WIN32 )
    132   file( GLOB headers RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" *.h *.hpp )
    133   foreach( h ${headers} )
    134     set( srcFile "${CMAKE_CURRENT_SOURCE_DIR}/${h}" )
    135     set( destFile "${PROJECT_BINARY_DIR}/tol/${h}" )
    136     if( NOT EXISTS ${destFile} OR ( ${srcFile} IS_NEWER_THAN ${destFile} ) )
    137         message( STATUS "Copying from %{srcFile} to ${newFile}" )
    138         execute_process(
    139           COMMAND "${CMAKE_COMMAND}" "-E" ${cmd} ${srcFile} ${destFile}
    140           RESULT_VARIABLE rc
    141           OUTPUT_VARIABLE output
    142           ERROR_VARIABLE error )
    143     endif()
    144   endforeach( )
    145 endmacro( create_header_links2 )
    146102
    147103set( COPY_HEADERS_DEPENDS "" CACHE INTERNAL "" )
    … …  
    152108    set( cmd "create_symlink" )
    153109  endif( WIN32 )
     110  file( GLOB headers RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" *.h *.hpp )
     111  install( FILES ${headers} DESTINATION "include/tol"
     112        COMPONENT DEVELOPMENT )
    154113  if( skip_copy_headers )
    155114    message( STATUS "Skipping create_header_links for ${CMAKE_CURRENT_SOURCE_DIR}" )
    156115  else( skip_copy_headers )
    157     file( GLOB headers RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" *.h *.hpp )
    158116    set( lst  "" )
    159117    foreach( h ${headers} )
    … …  
    423381install( TARGETS tol
    424382  RUNTIME DESTINATION bin ARCHIVE DESTINATION lib LIBRARY DESTINATION lib )
    425 install( DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/tol"
    426   DESTINATION "include"
    427   COMPONENT DEVELOPMENT )
     383
    428384install( DIRECTORY stdlib COMPONENT RUNTIME DESTINATION "bin"
    429385  PATTERN "*.tol"
Note: See TracChangeset for help on using the changeset viewer.