summarylogtreecommitdiffstats
path: root/build-shared.patch
blob: 83798b15bac5dcffb59b10f14a7631286baebac1 (plain)
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
diff --color -Naur a/CMakeLists.txt b/CMakeLists.txt
--- a/CMakeLists.txt	2013-04-03 16:24:08.000000000 +0800
+++ b/CMakeLists.txt	2021-07-27 00:32:16.817794613 +0800
@@ -73,8 +73,8 @@
 
 # Find the Boost and Xerces libraries
 
-set(Boost_USE_STATIC_LIBS   ON)
-set(Boost_USE_STATIC_RUNTIME ON)
+set(Boost_USE_STATIC_LIBS   OFF)
+set(Boost_USE_STATIC_RUNTIME OFF)
 set(Boost_USE_MULTITHREADED ON)
 find_package(Boost
     COMPONENTS
@@ -92,7 +92,7 @@
 )
 endif(NOT Boost_FOUND)
 
-set(Xerces_USE_STATIC_LIBS On)
+set(Xerces_USE_STATIC_LIBS OFF)
 find_package(Xerces QUIET)
 if (NOT Xerces_FOUND)
     set(XERCES_ROOT CACHE PATH "Location of the xerces library")
@@ -141,7 +141,7 @@
 # The reference implementation
 #
 
-add_library( E57RefImpl STATIC
+add_library( E57RefImpl SHARED
     src/refimpl/E57Foundation.cpp
     src/refimpl/E57FoundationImpl.cpp
     src/refimpl/E57FoundationImpl.h
@@ -172,6 +172,11 @@
     include/time_conversion/gnss_error.h
 )
 
+target_link_libraries( E57RefImpl
+    LASReader
+    time_conversion
+)
+
 #
 # Example programs
 #
@@ -259,15 +264,26 @@
 install(
     FILES
         include/E57Foundation.h
+        include/E57Simple.h
+        include/LASReader.h
     DESTINATION include/e57
 )
 
 install(
     FILES
+        include/time_conversion/time_conversion.h
+        include/time_conversion/basictypes.h
+        include/time_conversion/constants.h
+        include/time_conversion/gnss_error.h
+    DESTINATION include/e57/time_conversion
+)
+
+install(
+    FILES
         CHANGES.TXT
         README.TXT
         src/refimpl/E57RefImplConfig.cmake
-    DESTINATION .
+    DESTINATION share/e57refimpl
 )
 
 #include (InstallRequiredSystemLibraries)