diff options
| author | Griffin Downs <35574547+grdowns@users.noreply.github.com> | 2019-04-12 02:30:59 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-04-12 02:30:59 -0700 |
| commit | 0e000644053015b7f7a0985e14f0bd384c847d17 (patch) | |
| tree | 7e456fd12b3bf281b28587338f1650017c8b32ab /ports/tinyxml | |
| parent | 93ce6b4f27602cd18f4327c2cfd84093d472b8bb (diff) | |
| parent | 39ba5b2b30c9f7b49e777a62093cdd49d05b53a9 (diff) | |
| download | vcpkg-0e000644053015b7f7a0985e14f0bd384c847d17.tar.gz vcpkg-0e000644053015b7f7a0985e14f0bd384c847d17.zip | |
Merge branch 'master' into master
Diffstat (limited to 'ports/tinyxml')
| -rw-r--r-- | ports/tinyxml/portfile.cmake | 1 | ||||
| -rw-r--r-- | ports/tinyxml/tinyxml-config.cmake | 19 |
2 files changed, 20 insertions, 0 deletions
diff --git a/ports/tinyxml/portfile.cmake b/ports/tinyxml/portfile.cmake index 1d4e6131b..2936a4d57 100644 --- a/ports/tinyxml/portfile.cmake +++ b/ports/tinyxml/portfile.cmake @@ -28,3 +28,4 @@ vcpkg_copy_pdbs() file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) file(INSTALL ${CMAKE_CURRENT_LIST_DIR}/License.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/tinyxml RENAME copyright) +file(INSTALL ${CMAKE_CURRENT_LIST_DIR}/tinyxml-config.cmake DESTINATION ${CURRENT_PACKAGES_DIR}/share/tinyxml) diff --git a/ports/tinyxml/tinyxml-config.cmake b/ports/tinyxml/tinyxml-config.cmake new file mode 100644 index 000000000..1bdc5ad7f --- /dev/null +++ b/ports/tinyxml/tinyxml-config.cmake @@ -0,0 +1,19 @@ +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()
+
|
