From b01aec9f631409027c706c95a798f56d41b28c5c Mon Sep 17 00:00:00 2001
From: open-license-manager <rillf@maildrop.cc>
Date: 周二, 22 7月 2014 14:51:57 +0800
Subject: [PATCH] tests

---
 test/functional/CMakeLists.txt |   24 +++++++++++++++++++++---
 1 files changed, 21 insertions(+), 3 deletions(-)

diff --git a/test/functional/CMakeLists.txt b/test/functional/CMakeLists.txt
index ee89b80..a343dc6 100644
--- a/test/functional/CMakeLists.txt
+++ b/test/functional/CMakeLists.txt
@@ -1,14 +1,32 @@
+ADD_LIBRARY(license_generator_snippet STATIC
+ 	generate-license.cpp
+)
+target_link_libraries(
+	license_generator_snippet
+ 	license_generator_lib
+)
 
 add_executable(
  standard_license_test
  standard-license_test.cpp
 )
-
 target_link_libraries(
  standard_license_test
- license_generator_lib
  license++_static
+ license_generator_snippet
 )
-
 SET_TARGET_PROPERTIES(standard_license_test PROPERTIES LINK_SEARCH_START_STATIC ON)
+
+add_executable(
+ date_test
+ date_test.cpp
+)
+target_link_libraries(
+ date_test
+ license++_static
+ license_generator_snippet
+)
+SET_TARGET_PROPERTIES(date_test PROPERTIES LINK_SEARCH_START_STATIC ON)
+
 ADD_TEST(standard_license_test ${EXECUTABLE_OUTPUT_PATH}/standard_license_test)
+ADD_TEST(date_test ${EXECUTABLE_OUTPUT_PATH}/date_test)
\ No newline at end of file

--
Gitblit v1.9.1