-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy path0001-Add-CMakeLists.txt-file.patch
More file actions
48 lines (45 loc) · 1016 Bytes
/
0001-Add-CMakeLists.txt-file.patch
File metadata and controls
48 lines (45 loc) · 1016 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
From d487b521f0285ebbcb86bea65586eca039502be2 Mon Sep 17 00:00:00 2001
From: Arnaud Gelas <arnaudgelas@gmail.com>
Date: Fri, 22 Jun 2012 14:37:55 +0200
Subject: [PATCH] Add CMakeLists.txt file
---
CMakeLists.txt | 27 +++++++++++++++++++++++++++
1 file changed, 27 insertions(+)
create mode 100644 CMakeLists.txt
diff --git a/CMakeLists.txt b/CMakeLists.txt
new file mode 100644
index 0000000..35f457e
--- /dev/null
+++ b/CMakeLists.txt
@@ -0,0 +1,29 @@
+project( tinyxml )
+
+cmake_minimum_required( VERSION 2.6 )
+
+option( BUILD_SHARED "Build shared libraries" ON )
+
+if( ${BUILD_SHARED} MATCHES "ON" )
+ set( shared SHARED )
+else()
+ set( shared )
+endif()
+
+set( sources
+ tinystr.cpp
+ tinyxml.cpp
+ tinyxmlparser.cpp
+ tinyxmlerror.cpp
+)
+
+add_library( tinyxml ${shared}
+ ${sources}
+)
+
+install( FILES tinyxml.h tinystr.h DESTINATION include )
+install( TARGETS tinyxml
+ RUNTIME DESTINATION bin
+ LIBRARY DESTINATION lib
+ ARCHIVE DESTINATION lib
+)
--
1.7.9.5