From b446e4d14a0694d23573d77672ef6d70c51d6a08 Mon Sep 17 00:00:00 2001
From: Maximilien Siavelis <maximilien.siavelis@simulease.com>
Date: 周五, 05 1月 2018 09:10:37 +0800
Subject: [PATCH] make install and some cleanup

---
 test/library/CMakeLists.txt |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/test/library/CMakeLists.txt b/test/library/CMakeLists.txt
index a88aae1..44e8c80 100644
--- a/test/library/CMakeLists.txt
+++ b/test/library/CMakeLists.txt
@@ -7,8 +7,7 @@
 target_link_libraries(
  license_reader_test
  license++_static
- boost_filesystem
- boost_test
+ ${Boost_LIBRARIES}
 )
 
 #SET_TARGET_PROPERTIES(license_reader_test PROPERTIES LINK_SEARCH_START_STATIC ON)
@@ -26,11 +25,13 @@
 	target_link_libraries(
  		os_linux_test
  		os
- 		${Boost_test_LIBRARY}
+ 		${Boost_LIBRARIES}
 	)
 	
 	#add_dependencies( os_linux_test )
 	#SET_TARGET_PROPERTIES(os_linux_test PROPERTIES LINK_SEARCH_START_STATIC ON)
 	ADD_TEST(os_linux_test ${EXECUTABLE_OUTPUT_PATH}/os_linux_test)   
 	
-ENDIF(WIN32)
\ No newline at end of file
+ENDIF(WIN32)
+
+install(TARGETS license_reader_test RUNTIME DESTINATION bin)

--
Gitblit v1.9.1