Skip to content

semenovf/common-lib

Repository files navigation

Standard License Build Status Build status

common-lib (Common library for Portable Foundation Structures)

namespace pfs {
1. dynamic_library class
1. function_queue container class
2. filesystem classes
3. fmt
4. iterator classes
5. numeric functions
6. rational class
7. variant class and functions
8. static_unique_pointer_cast function
9. unicode
} // namespace pfs

I18N support

Call cmake with PFS__ENABLE_NLS to enable NLS support:

$ cmake ... -DPFS__ENABLE_NLS=ON ...
...

if (TARGET <TARGET>)
    # Target `libintl` available if `PFS__ENABLE_NLS` is ON 
    # and `PFS__USE_IMPORTED_GETTEXT_LIB` is ON (on Windows platform)
    if (TARGET libintl)
        portable_target(LINK <TARGET> PRIVATE libintl)
        
        add_custom_command(TARGET <TARGET>
            POST_BUILD
            COMMAND ${CMAKE_COMMAND} -E copy 
                "$<TARGET_PROPERTY:libintl,IMPORTED_LOCATION>"
                "$<TARGET_FILE_DIR:<TARGET>>"
            COMMAND ${CMAKE_COMMAND} -E copy 
                "$<TARGET_PROPERTY:libintl,ICONV_LIB>"
                "$<TARGET_FILE_DIR:<TARGET>>"
            VERBATIM)
    endif()
endif()
...

About

Common library for Portable Foundation Structures

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published