~aleteoryx/muditaos

ref: 09761da170faa207c5d899d2132a3cc67dad5a31 muditaos/module-utils/third-party/pugixml.cmake -rw-r--r-- 578 bytes
09761da1 — DariuszSabala [BH-369] Fixed UTF8 unit test CI run 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})