mirror of
https://github.com/polserver/polserver
synced 2026-08-13 08:23:08 -04:00
* every 3rd party lib is now excluded from "all" build, meaning it gets only build when actually used. removed the cmake option to partially build, due to the above changes this is no more needed, just build the target streamlined 3rdparty target names, they all start with lib now * renamed escriptgrammar target to escriptgrammar_codegen for clarification fixed dependency name * corrected sources name * readded missing include
28 lines
593 B
CMake
28 lines
593 B
CMake
set(lib_name libtinyxml)
|
|
set(tinydir ${POL_EXT_LIB_DIR}/tinyxml-2.6.2)
|
|
|
|
add_library(${lib_name} STATIC
|
|
EXCLUDE_FROM_ALL
|
|
# sorted !
|
|
${tinydir}/tinyxml/tinystr.cpp
|
|
${tinydir}/tinyxml/tinyxml.cpp
|
|
${tinydir}/tinyxml/tinyxmlerror.cpp
|
|
${tinydir}/tinyxml/tinyxmlparser.cpp
|
|
)
|
|
|
|
set_compile_flags(${lib_name} 0)
|
|
|
|
target_compile_definitions(${lib_name} PUBLIC
|
|
TIXML_USE_STL
|
|
)
|
|
|
|
if (${windows})
|
|
target_compile_options(${lib_name} PRIVATE
|
|
/wd4458 #var name hides
|
|
)
|
|
endif()
|
|
|
|
set_target_properties (${lib_name} PROPERTIES
|
|
INTERFACE_INCLUDE_DIRECTORIES ${tinydir}
|
|
FOLDER 3rdParty
|
|
)
|