Fix assetnameparser build

This commit is contained in:
Luke Street 2021-04-06 15:46:02 -04:00
parent b9fc493db7
commit 5ecc52b42b
1 changed files with 4 additions and 1 deletions

View File

@ -2,7 +2,10 @@ cmake_minimum_required(VERSION 3.10 FATAL_ERROR) # because of c++17
set(TINYXML_LIB_VERSION "5.0.1")
set(TINYXML_LIB_SOVERSION "5")
add_library(tinyxml2_static STATIC ../extern/tinyxml2/tinyxml2.cpp ../extern/tinyxml2/tinyxml2.h)
add_library(tinyxml2_static STATIC
"${CMAKE_SOURCE_DIR}/extern/tinyxml2/tinyxml2.cpp"
"${CMAKE_SOURCE_DIR}/extern/tinyxml2/tinyxml2.h")
target_include_directories(tinyxml2_static INTERFACE "${CMAKE_SOURCE_DIR}/extern")
set_target_properties(tinyxml2_static PROPERTIES
COMPILE_DEFINITONS "TINYXML2_EXPORT"
VERSION "${TINYXML_LIB_VERSION}"