From dda16735b94661b798d6c0fd3e41af944de0a1fe Mon Sep 17 00:00:00 2001
From: gcontini <1121667+gcontini@users.noreply.github.com>
Date: 周日, 13 10月 2019 15:02:19 +0800
Subject: [PATCH] refactoring - locators

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

diff --git a/test/library/CMakeLists.txt b/test/library/CMakeLists.txt
index 49edff0..c59615f 100644
--- a/test/library/CMakeLists.txt
+++ b/test/library/CMakeLists.txt
@@ -5,7 +5,7 @@
 
 target_link_libraries(
  license_reader_test
- licensepp_static
+ licensecc_static
  ${Boost_LIBRARIES}
 )
 
@@ -32,3 +32,23 @@
 
 	ADD_TEST(NAME os_linux_test COMMAND os_linux_test)
 ENDIF(WIN32)
+
+
+### LicenseLocator tests
+add_executable(
+ license_locator_test
+ LicenseLocator_test.cpp
+)
+
+target_link_libraries(
+ license_locator_test
+ locators
+ ${Boost_LIBRARIES}
+)
+
+IF( ( CMAKE_HOST_SYSTEM_NAME STREQUAL "Linux") AND CMAKE_CROSSCOMPILING)
+#binfmt_misc doesn't work in my system :(
+	ADD_TEST(NAME license_locator_test COMMAND wine ${CMAKE_CURRENT_BINARY_DIR}/license_locator_test)
+ELSE()
+	ADD_TEST(NAME license_locator_test COMMAND license_locator_test)
+ENDIF()
\ No newline at end of file

--
Gitblit v1.9.1