mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2024-11-25 17:53:47 +00:00
9 lines
369 B
CMake
9 lines
369 B
CMake
|
OPTION(AQUARIA_INTERNAL_TINYXML2 "Always use included TinyXML2 library" TRUE)
|
||
|
if(AQUARIA_INTERNAL_TINYXML2)
|
||
|
message(STATUS "Using internal copy of TinyXML2")
|
||
|
set(TINYXML2_INCLUDE_DIRS "${CMAKE_CURRENT_SOURCE_DIR}/tinyxml2" CACHE INTERNAL "")
|
||
|
add_library(tinyxml2 tinyxml2/tinyxml2.cpp tinyxml2/tinyxml2.h)
|
||
|
else()
|
||
|
find_package(TinyXML2 REQUIRED)
|
||
|
endif()
|