At least one Linux distribution packager of FG has complained that we're bundling expat in our binaries. To keep them happy, add the option (-DSYSTEM_EXPAT=1 at cmake time) to use the system expat instead. For the moment (and simplicity), this requires building SIMGEAR_SHARED (which is fired to on by selecting the option).
38 lines
583 B
CMake
38 lines
583 B
CMake
|
|
include (SimGearComponent)
|
|
|
|
|
|
set(HEADERS
|
|
easyxml.hxx
|
|
)
|
|
|
|
set(SOURCES
|
|
easyxml.cxx
|
|
)
|
|
|
|
if (NOT SYSTEM_EXPAT)
|
|
list(APPEND SOURCES
|
|
asciitab.h
|
|
hashtable.h
|
|
iasciitab.h
|
|
latin1tab.h
|
|
nametab.h
|
|
utf8tab.h
|
|
xmldef.h
|
|
xmlparse.h
|
|
xmlrole.h
|
|
xmltok.h
|
|
xmltok_impl.h
|
|
hashtable.c
|
|
xmlparse.c
|
|
xmlrole.c
|
|
xmltok.c
|
|
internal.h
|
|
ascii.h
|
|
expat.h
|
|
expat_external.h
|
|
)
|
|
endif()
|
|
|
|
simgear_component(xml xml "${SOURCES}" "${HEADERS}")
|