From e4508e6f9ac35b4d6cb64f3613265e16348d24f4 Mon Sep 17 00:00:00 2001
From: Gabriele Contini <gcontini@users.noreply.github.com>
Date: 周日, 01 9月 2019 14:48:55 +0800
Subject: [PATCH] Added link

---
 test/library/CMakeLists.txt |   36 +++++++++++++++++++++++++++++++++++-
 1 files changed, 35 insertions(+), 1 deletions(-)

diff --git a/test/library/CMakeLists.txt b/test/library/CMakeLists.txt
index 6a1f0d0..314aa6f 100644
--- a/test/library/CMakeLists.txt
+++ b/test/library/CMakeLists.txt
@@ -1 +1,35 @@
-add_subdirectory(reader)
\ No newline at end of file
+add_executable(
+ license_reader_test
+ LicenseReader_test.cpp
+)
+#add_dependencies( license_reader_test boost_filesystem )
+
+target_link_libraries(
+ license_reader_test
+ license++_static
+ ${Boost_LIBRARIES}
+)
+
+#SET_TARGET_PROPERTIES(license_reader_test PROPERTIES LINK_SEARCH_START_STATIC ON)
+#SET_TARGET_PROPERTIES(license_reader_test PROPERTIES LINK_SEARCH_END_STATIC OFF)
+ADD_TEST(NAME license_reader_test COMMAND license_reader_test)
+
+IF(WIN32)
+#test windows
+ELSE(WIN32)
+    add_executable(
+ 		os_linux_test
+ 		Os_Linux_test.cpp
+	)
+
+	target_link_libraries(
+ 		os_linux_test
+ 		os
+ 		${Boost_LIBRARIES}
+	)
+	
+	#add_dependencies( os_linux_test )
+	#SET_TARGET_PROPERTIES(os_linux_test PROPERTIES LINK_SEARCH_START_STATIC ON)
+	ADD_TEST(NAME os_linux_test COMMAND os_linux_test)
+	
+ENDIF(WIN32)

--
Gitblit v1.9.1