~aleteoryx/muditaos

ref: 18fdf152bd106c6282a7ebe016f6f496735ffc1c muditaos/module-apps/application-calculator/CMakeLists.txt -rw-r--r-- 1.4 KiB
18fdf152 — Mateusz Grzegorzek [BH-742] Handle different products in run script 4 years 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# Copyright (c) 2017-2021, Mudita Sp. z.o.o. All rights reserved.
# For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md

add_library(application-calculator STATIC)

target_include_directories(application-calculator
    PRIVATE
        $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
    PUBLIC
        $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
)

target_sources(application-calculator
    PRIVATE
        ApplicationCalculator.cpp
        data/CalculatorInputProcessor.cpp
        data/CalculatorInputProcessorText.cpp
        data/CalculatorUtility.cpp
        widgets/MathOperationsBox.cpp
        windows/CalculatorMainWindow.cpp
   PUBLIC
        data/CalculatorInputProcessor.hpp
        data/CalculatorInputProcessorText.hpp
        data/CalculatorUtility.hpp
        include/application-calculator/ApplicationCalculator.hpp
        widgets/CalculatorStyle.hpp
        widgets/MathOperationsBox.hpp
        windows/CalculatorMainWindow.hpp
        
       
)

option(ENABLE_APP_CALCULATOR "Enable application calculator" ON)

target_compile_definitions(application-calculator
    INTERFACE
        $<$<BOOL:${ENABLE_APP_CALCULATOR}>:ENABLE_APP_CALCULATOR>
)

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

target_link_libraries(application-calculator
    PUBLIC
        apps-common
    PRIVATE
        i18n
        Microsoft.GSL::GSL
        module-gui
        module-utils
        tinyexpr::tinyexpr
        utf8
)