mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-22 16:47:49 +08:00
20 lines
502 B
CMake
20 lines
502 B
CMake
|
if (tinyxml_CONFIG_INCLUDED)
|
||
|
return()
|
||
|
endif()
|
||
|
set(tinyxml_CONFIG_INCLUDED TRUE)
|
||
|
|
||
|
set(tinyxml_INCLUDE_DIRS "${CMAKE_CURRENT_LIST_DIR}/../../include")
|
||
|
|
||
|
foreach(lib tinyxml)
|
||
|
set(onelib "${lib}-NOTFOUND")
|
||
|
find_library(onelib ${lib}
|
||
|
PATHS "${CMAKE_CURRENT_LIST_DIR}/../../lib"
|
||
|
NO_DEFAULT_PATH
|
||
|
)
|
||
|
if(NOT onelib)
|
||
|
message(FATAL_ERROR "Library '${lib}' in package tinyxml is not installed properly")
|
||
|
endif()
|
||
|
list(APPEND tinyxml_LIBRARIES ${onelib})
|
||
|
endforeach()
|
||
|
|