From 9119e2b9bbb11b4ae21618fbaacfe6edaeb2a62b Mon Sep 17 00:00:00 2001 From: Gabriele Contini <contini.mailing@gmail.com> Date: 周六, 15 2月 2020 23:49:50 +0800 Subject: [PATCH] pc identifiers work --- test/functional/CMakeLists.txt | 58 ++++++++++++++++++++++++++++++++++------------------------ 1 files changed, 34 insertions(+), 24 deletions(-) diff --git a/test/functional/CMakeLists.txt b/test/functional/CMakeLists.txt index cdcc680..c081de9 100644 --- a/test/functional/CMakeLists.txt +++ b/test/functional/CMakeLists.txt @@ -2,37 +2,37 @@ generate-license.cpp ) -target_link_libraries( - license_generator_snippet - ${Boost_LIBRARIES} +target_link_libraries( license_generator_snippet + Boost::unit_test_framework + Boost::filesystem + Boost::system ) -add_executable( - test_standard_license +add_executable( test_standard_license standard-license_test.cpp ) -target_link_libraries( - test_standard_license +target_link_libraries( test_standard_license licensecc_static license_generator_snippet - ${Boost_LIBRARIES} + Boost::unit_test_framework + Boost::filesystem + Boost::system ) -add_executable( - test_date +add_executable( test_date date_test.cpp ) -target_link_libraries( - test_date +target_link_libraries( test_date licensecc_static license_generator_snippet - ${Boost_LIBRARIES} + Boost::unit_test_framework + Boost::filesystem + Boost::system ) -add_executable( - test_signature_verifier +add_executable( test_signature_verifier signature_verifier_test.cpp ) @@ -40,26 +40,36 @@ test_signature_verifier licensecc_static license_generator_snippet - ${Boost_LIBRARIES} + Boost::unit_test_framework + Boost::filesystem + Boost::system ) -add_executable( - test_volid - volid_test.cpp -) +add_executable(test_it_pc_identifer hw_identifier_it_test.cpp) -target_link_libraries( - test_volid +target_link_libraries(test_it_pc_identifer licensecc_static license_generator_snippet - ${Boost_LIBRARIES} + Boost::unit_test_framework + Boost::filesystem + Boost::system ) +add_executable(test_crack crack_test.cpp) +target_link_libraries( test_crack + licensecc_static + license_generator_snippet + Boost::unit_test_framework + Boost::filesystem + Boost::system +) + +ADD_TEST(NAME test_crack COMMAND test_crack WORKING_DIRECTORY ${CMAKE_BINARY_DIR}) ADD_TEST(NAME test_date COMMAND test_date WORKING_DIRECTORY ${CMAKE_BINARY_DIR}) +ADD_TEST(NAME test_it_pc_identifer COMMAND test_it_pc_identifer WORKING_DIRECTORY ${CMAKE_BINARY_DIR}) ADD_TEST(NAME test_standard_license COMMAND test_standard_license WORKING_DIRECTORY ${CMAKE_BINARY_DIR}) ADD_TEST(NAME test_signature_verifier COMMAND test_signature_verifier WORKING_DIRECTORY ${CMAKE_BINARY_DIR}) -ADD_TEST(NAME test_volid COMMAND test_volid WORKING_DIRECTORY ${CMAKE_BINARY_DIR}) -- Gitblit v1.9.1