mirror of
https://github.com/GerbilSoft/mst06.git
synced 2025-06-19 03:55:33 -04:00

Added an internal copy of TinyXML2 for Windows builds. Based on the rom-properties build. main.cpp: Replace the file extension on the source file with .xml and use that as the destination filename.
23 lines
704 B
CMake
23 lines
704 B
CMake
# Find TinyXML2 libraries and headers.
|
|
# If found, the following variables will be defined:
|
|
# - TinyXML2_FOUND: System has TinyXML2.
|
|
# - TinyXML2_INCLUDE_DIRS: TinyXML2 include directories.
|
|
# - TinyXML2_LIBRARIES: TinyXML2 libraries.
|
|
# - TinyXML2_DEFINITIONS: Compiler switches required for using TinyXML2.
|
|
#
|
|
# In addition, a target TinyXML2::tinyxml2 will be created with all of
|
|
# these definitions.
|
|
#
|
|
# References:
|
|
# - https://cmake.org/Wiki/CMake:How_To_Find_Libraries
|
|
# - http://francesco-cek.com/cmake-and-gtk-3-the-easy-way/
|
|
#
|
|
|
|
INCLUDE(FindLibraryPkgConfig)
|
|
FIND_LIBRARY_PKG_CONFIG(TinyXML2
|
|
tinyxml2 # pkgconfig
|
|
tinyxml2.h # header
|
|
tinyxml2 # library
|
|
TinyXML2::tinyxml2 # imported target
|
|
)
|