~aleteoryx/muditaos

ref: 52d5a35c1b9584612587fa62bf8e83c5c5a641fe muditaos/module-utils/third-party/pugixml.cmake -rw-r--r-- 578 bytes
52d5a35c — Bartosz Cichocki [EGD-6447] Add Bluetooth PIN pairing 4 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
include (thirdparty)

set (PUGIXML_TARGET pugixml)

# setup pufixml path and source list
set (PUGIXML_SRCDIR ${CMAKE_CURRENT_SOURCE_DIR}/pugixml/src)
set (PUGIXML_SOURCES
    ${PUGIXML_SRCDIR}/pugixml.cpp
)

# create static library for the third party
add_library (${PUGIXML_TARGET} STATIC ${PUGIXML_SOURCES})

# setup flags for the third party
third_party_target_setup (${PUGIXML_TARGET})

# add include directory path
target_include_directories (${PUGIXML_TARGET} PUBLIC ${PUGIXML_SRCDIR})

# turn on optimization in debug
third_party_source_optimization (${PUGIXML_SOURCES})