From a746e75a645f9ff00de03863bcba4add23a9c48e Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Thu, 18 Jun 2026 20:48:20 +0200 Subject: cmake: prettify CMakeLists.txt files --- test/stress/CMakeLists.txt | 7 ++++++- test/unit_tests/CMakeLists.txt | 6 ++++-- 2 files changed, 10 insertions(+), 3 deletions(-) (limited to 'test') diff --git a/test/stress/CMakeLists.txt b/test/stress/CMakeLists.txt index 340cb12..2dafab8 100644 --- a/test/stress/CMakeLists.txt +++ b/test/stress/CMakeLists.txt @@ -2,5 +2,10 @@ if(CMAKE_HOST_UNIX) # Not going to bother with bash on Windows. find_package(Python3 REQUIRED COMPONENTS Interpreter) - add_test(NAME stress_test COMMAND "${CMAKE_CURRENT_SOURCE_DIR}/test.sh" "$" "$") + add_test( + NAME stress_test + COMMAND "${CMAKE_CURRENT_SOURCE_DIR}/test.sh" + "$" + "$" + ) endif() diff --git a/test/unit_tests/CMakeLists.txt b/test/unit_tests/CMakeLists.txt index cf348f7..390d223 100644 --- a/test/unit_tests/CMakeLists.txt +++ b/test/unit_tests/CMakeLists.txt @@ -6,7 +6,8 @@ set_target_properties(unit_tests PROPERTIES OUTPUT_NAME math-server-unit-tests) target_link_libraries(unit_tests PRIVATE lexer parser) target_link_libraries(unit_tests PRIVATE Boost::disable_autolinking - Boost::unit_test_framework) + Boost::unit_test_framework +) install(TARGETS unit_tests RUNTIME DESTINATION bin) if(MSVC) install(FILES $ DESTINATION bin OPTIONAL) @@ -20,4 +21,5 @@ add_test(NAME unit_tests COMMAND Python3::Interpreter --pass-regex [=[^\*\*\* No errors detected$]=] -- "$" - --no_color_output) + --no_color_output +) -- cgit v1.3