~aleteoryx/muditaos

ref: f585c33b7afacce8fa10c33c44bab37e935b68d4 muditaos/module-utils/utility/CMakeLists.txt -rw-r--r-- 579 bytes
f585c33b — Lefucjusz [BH-2002] Fix crash when connected with broken USB cable 1 year, 6 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
32
33
34
35
36
add_library(utility STATIC)

target_sources(utility
    PRIVATE
        Utils.cpp
        Anonymize.cpp

    PUBLIC
        integer.hpp
        Split.hpp
        split_sv.hpp
        Temperature.hpp
        Utility.hpp
        Utils.hpp
        Units.hpp
        Anonymize.hpp
)

target_include_directories(utility
    PUBLIC
        $<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}>
)

target_link_libraries(utility
    PUBLIC
        log-api
        magic_enum::magic_enum

    PRIVATE
        hash-library::hash-library
)

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