From 8af6b12ee8716d2004d13bbfc81281953975b466 Mon Sep 17 00:00:00 2001
From: open-license-manager <rillf@maildrop.cc>
Date: 周一, 04 8月 2014 00:15:33 +0800
Subject: [PATCH] new identifier strategy (to be reverted

---
 test/functional/CMakeLists.txt |   50 ++++++++++++++++++++++++++++++++++++++++++++++++--
 1 files changed, 48 insertions(+), 2 deletions(-)

diff --git a/test/functional/CMakeLists.txt b/test/functional/CMakeLists.txt
index 4e3773d..86296ab 100644
--- a/test/functional/CMakeLists.txt
+++ b/test/functional/CMakeLists.txt
@@ -1,3 +1,10 @@
+ADD_LIBRARY(license_generator_snippet STATIC
+ 	generate-license.cpp
+)
+target_link_libraries(
+	license_generator_snippet
+ 	license_generator_lib
+)
 
 add_executable(
  standard_license_test
@@ -7,8 +14,47 @@
 target_link_libraries(
  standard_license_test
  license++_static
- license_generator_lib
+ 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_executable(
+ volid_test
+ volid_test.cpp
+)
+target_link_libraries(
+ volid_test
+ license++_static
+ license_generator_snippet
 )
 
-SET_TARGET_PROPERTIES(standard_license_test PROPERTIES LINK_SEARCH_START_STATIC ON)
+SET_TARGET_PROPERTIES(volid_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)
+ADD_TEST(volid_test ${EXECUTABLE_OUTPUT_PATH}/volid_test)
+
+
+
+add_executable(
+ stackoverflow
+ stackoverflow.cpp
+)
+
+target_link_libraries(
+    stackoverflow
+    license_generator_lib
+)
+
+SET_TARGET_PROPERTIES(stackoverflow PROPERTIES LINK_SEARCH_START_STATIC ON)
\ No newline at end of file

--
Gitblit v1.9.1