From ab3e91ded7f8fb69c244231e2d6fe80a92070c37 Mon Sep 17 00:00:00 2001 From: open-license-manager <rillf@maildrop.cc> Date: 周一, 11 8月 2014 16:59:02 +0800 Subject: [PATCH] add boost --- test/library/CMakeLists.txt | 33 ++++++++++++++++++++++++++++++++- 1 files changed, 32 insertions(+), 1 deletions(-) diff --git a/test/library/CMakeLists.txt b/test/library/CMakeLists.txt index 6a1f0d0..3e7ee93 100644 --- a/test/library/CMakeLists.txt +++ b/test/library/CMakeLists.txt @@ -1 +1,32 @@ -add_subdirectory(reader) \ No newline at end of file +add_executable( + license_reader_test + LicenseReader_test.cpp +) + +target_link_libraries( + license_reader_test + license++_static +) + +add_dependencies( license_reader_test boost_test boost_filesystem ) +SET_TARGET_PROPERTIES(license_reader_test PROPERTIES LINK_SEARCH_START_STATIC ON) +ADD_TEST(license_reader_test ${EXECUTABLE_OUTPUT_PATH}/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 + ) + + add_dependencies( os_linux_test boost_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 -- Gitblit v1.9.1