~aleteoryx/muditaos

ref: master muditaos/module-utils/i18n/CMakeLists.txt -rw-r--r-- 571 bytes
2cd0e472 — Lefucjusz [BH-000] Update Harmony 2.10.0 changelog 2 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
add_library(i18n STATIC)
add_library(utils::i18n ALIAS i18n)

target_sources(i18n
    PRIVATE
        i18n.cpp
        i18nImpl.hpp
        Metadata.hpp
        JSONLoader.hpp
    PUBLIC
        include/i18n/i18n.hpp
)

target_include_directories(i18n
    PRIVATE
        $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/>
    PUBLIC
        $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
)

target_link_libraries(i18n
    PRIVATE 
        json::json
        log-api
        module-os
        purefs-paths
)

if (${ENABLE_TESTS})
    add_subdirectory(tests)
endif()