From d8cb65be17ba8c3e64548a5357257445065d01c8 Mon Sep 17 00:00:00 2001
From: Geoff McLane <ubuntu@geoffair.info>
Date: Sun, 3 Jun 2018 20:08:12 +0200
Subject: [PATCH] Install lib Array and header in include/tg

---
 src/Lib/Array/CMakeLists.txt | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/src/Lib/Array/CMakeLists.txt b/src/Lib/Array/CMakeLists.txt
index 9eb1c105..869a607f 100644
--- a/src/Lib/Array/CMakeLists.txt
+++ b/src/Lib/Array/CMakeLists.txt
@@ -1,7 +1,14 @@
+# array library, and test_array app
 
 add_library(Array STATIC 
     array.cxx array.hxx
 )
+install( TARGETS Array
+         RUNTIME DESTINATION bin
+         LIBRARY DESTINATION lib
+         ARCHIVE DESTINATION lib 
+         )
+install( FILES array.hxx DESTINATION include/tg )
 
 add_executable(test_array testarray.cxx)
 
@@ -12,3 +19,6 @@ target_link_libraries(test_array
 	${SIMGEAR_CORE_LIBRARY_DEPENDENCIES})
 
 install(TARGETS test_array RUNTIME DESTINATION bin)
+if (MSVC)
+    set_target_properties( test_array PROPERTIES DEBUG_POSTFIX d )
+endif ()