Changeset 574

Show
Ignore:
Timestamp:
06/27/08 14:02:08 (5 months ago)
Author:
weyrick
Message:

add io lib support

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/rphp/cmake/modules/FindICU.cmake

    r572 r574  
    55#  ICU_FOUND          - True if ICU found. 
    66#  ICU_I18N_FOUND     - True if ICU's internationalization library found. 
     7#  ICU_IO_FOUND       - True if ICU's ostream output lib is found. 
    78#  ICU_INCLUDE_DIRS   - Directory to include to get ICU headers 
    89#                       Note: always include ICU headers as, e.g.,  
     
    1112#  ICU_I18N_LIBRARIES - Libraries to link against for ICU internationaliation 
    1213#                       (note: in addition to ICU_LIBRARIES) 
    13  
     14
     15#  ICU_IO_LIBRARIES   - Libraries for ostream output 
     16
     17
    1418# Look for the header file. 
    1519find_path( 
     
    3842    DOC "Libraries to link against for ICU internationalization") 
    3943  mark_as_advanced(ICU_I18N_LIBRARY) 
     44 
    4045  if (ICU_I18N_LIBRARY) 
    4146    set(ICU_I18N_FOUND 1) 
     
    4550    set(ICU_I18N_LIBRARIES) 
    4651  endif (ICU_I18N_LIBRARY) 
     52 
     53  # Look for the ICU ostream library 
     54  find_library( 
     55    ICU_IO_LIBRARY 
     56    NAMES icuio 
     57    DOC "Libraries to link against for ICU ostream output") 
     58  mark_as_advanced(ICU_IO_LIBRARY) 
     59 
     60  if (ICU_IO_LIBRARY) 
     61    set(ICU_IO_FOUND 1) 
     62    set(ICU_IO_LIBRARIES ${ICU_IO_LIBRARY}) 
     63  else (ICU_IO_LIBRARY) 
     64    set(ICU_IO_FOUND 0) 
     65    set(ICU_IO_LIBRARIES) 
     66  endif (ICU_IO_LIBRARY) 
     67 
    4768else(ICU_INCLUDE_DIR AND ICU_LIBRARY) 
    4869  set(ICU_FOUND 0) 
    4970  set(ICU_I18N_FOUND 0) 
     71  set(ICU_IO_FOUND 0) 
    5072  set(ICU_LIBRARIES) 
    5173  set(ICU_I18N_LIBRARIES) 
     74  set(ICU_IO_LIBRARIES) 
    5275  set(ICU_INCLUDE_DIRS) 
    5376endif(ICU_INCLUDE_DIR AND ICU_LIBRARY) 
  • trunk/rphp/runtime/CMakeLists.txt

    r573 r574  
    1414 
    1515add_executable( var-test ${SRC_FILES} ) 
     16target_link_libraries( var-test  ${ICU_LIBRARIES} ${ICU_IO_LIBRARIES} ) 
     17