fix: rng_test 添加 nlohmann_json 链接库,解决 json.hpp 找不到

This commit is contained in:
Huamonarch 2026-05-18 10:19:58 +08:00
parent 5f5e64a57f
commit 0accc6d2b0

View File

@ -75,6 +75,10 @@ target_include_directories(rng_test PUBLIC
${my_lib_include} ${my_lib_include}
) )
target_link_libraries(rng_test
nlohmann_json::nlohmann_json
)
set_target_properties(rng_test PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/test) set_target_properties(rng_test PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/test)
enable_testing() enable_testing()