~aleteoryx/muditaos

ref: 17f64cb3e4865ec85d4cb5a7f8a2bb9db68d023c muditaos/module-utils/third-party/pugixml.cmake -rw-r--r-- 578 bytes
17f64cb3 — Lucjan Bryndza [EGD-5022] Fix invalid open flags in vfscore 5 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})