diff options
author | Rashad M <mohammedrashadkm@gmail.com> | 2015-06-21 17:12:11 (GMT) |
---|---|---|
committer | Rashad M <mohammedrashadkm@gmail.com> | 2015-06-21 17:12:11 (GMT) |
commit | 20b514bd470fad1f499931a3193e2e8955187433 (patch) | |
tree | e7706c657d8354583edddfcc0eabea132ca1a553 /src/tinyxml-1-cmakelists.patch | |
parent | 4f45a0cf2cfda27668e291e2d324c2f44b2101ce (diff) | |
download | mxe-20b514bd470fad1f499931a3193e2e8955187433.zip mxe-20b514bd470fad1f499931a3193e2e8955187433.tar.gz mxe-20b514bd470fad1f499931a3193e2e8955187433.tar.bz2 |
tinyxml: use cmake to simply shared and static build
Diffstat (limited to 'src/tinyxml-1-cmakelists.patch')
-rw-r--r-- | src/tinyxml-1-cmakelists.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/tinyxml-1-cmakelists.patch b/src/tinyxml-1-cmakelists.patch new file mode 100644 index 0000000..bcaf0d8 --- /dev/null +++ b/src/tinyxml-1-cmakelists.patch @@ -0,0 +1,22 @@ +diff -burN tinyxml.orig/CMakeLists.txt tinyxml/CMakeLists.txt +--- tinyxml.orig/CMakeLists.txt 1970-01-01 01:00:00.000000000 +0100 ++++ tinyxml/CMakeLists.txt 2015-06-21 19:03:09.878168410 +0200 +@@ -0,0 +1,18 @@ ++cmake_minimum_required(VERSION 2.8) ++ ++file(GLOB SRCS "${CMAKE_SOURCE_DIR}/tiny*.cpp" ) ++ ++include_directories(${CMAKE_SOURCE_DIR}) ++add_definitions(-DTIXML_USE_STL) ++ ++add_library(tinyxml ${SRCS}) ++ ++install(TARGETS tinyxml ++ RUNTIME DESTINATION bin ++ LIBRARY DESTINATION lib ++ ARCHIVE DESTINATION lib) ++ ++file(GLOB HEADERS "${CMAKE_SOURCE_DIR}/*.h") ++install(FILES ${HEADERS} ++ DESTINATION include ++) |