From 374a60fa001de3e41c7e3d0782b4c2361479f316 Mon Sep 17 00:00:00 2001 From: Jan Willamowius <jan@willamowius.de> Date: 周日, 21 4月 2019 23:57:15 +0800 Subject: [PATCH] make sure variables are initialized before use --- 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