mirror of
https://github.com/polserver/polserver
synced 2026-08-13 08:23:08 -04:00
* Added explicit path to the lib/ folder. * Added use_zlib() function to the cmake files. Changed the remaining cmake files to use POL_EXT_LIB_DIR. * Removed relative path to zlib. It seems we were always using our zlib header (even when linking to the system zlib on linux!).
23 lines
510 B
CMake
23 lines
510 B
CMake
set(lib_name tinyxml)
|
|
|
|
add_library(${lib_name} STATIC
|
|
# sorted !
|
|
${POL_EXT_LIB_DIR}/tinyxml/tinystr.cpp
|
|
${POL_EXT_LIB_DIR}/tinyxml/tinyxml.cpp
|
|
${POL_EXT_LIB_DIR}/tinyxml/tinyxmlerror.cpp
|
|
${POL_EXT_LIB_DIR}/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 FOLDER 3rdParty)
|