aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2021-03-24 19:16:44 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2021-03-24 19:16:44 +0300
commit81c9070c616ca828b1848e7e6f1543f45ec384f8 (patch)
tree0d0ada152acbf92b13656be480a84ff97ba05712
parentadd stress_test.sh as a CTest test (diff)
downloadmath-server-81c9070c616ca828b1848e7e6f1543f45ec384f8.tar.gz
math-server-81c9070c616ca828b1848e7e6f1543f45ec384f8.zip
README: update
Diffstat (limited to '')
-rw-r--r--README.md9
-rw-r--r--test/unit_tests/CMakeLists.txt4
2 files changed, 9 insertions, 4 deletions
diff --git a/README.md b/README.md
index 093f9a4..c56173e 100644
--- a/README.md
+++ b/README.md
@@ -8,10 +8,13 @@ Development
Build using CMake.
Depends on Boost.{Filesystem,Program_options,Regex,Test}.
-Boost version 1.67 or higher is required (it would be Boost 1.66 in a perfect
-world, but the tests [fail to compile] with that).
-[fail to compile]: https://lists.boost.org/boost-bugs/2018/01/49711.php
+There's a Makefile with useful shortcuts to build the project in the .build/
+directory along with the dependencies:
+
+ make deps
+ make build
+ make test
Usage
-----
diff --git a/test/unit_tests/CMakeLists.txt b/test/unit_tests/CMakeLists.txt
index 7669e30..16da801 100644
--- a/test/unit_tests/CMakeLists.txt
+++ b/test/unit_tests/CMakeLists.txt
@@ -4,7 +4,9 @@ set_target_properties(unit_tests PROPERTIES OUTPUT_NAME math-server-unit-tests)
target_link_libraries(unit_tests PRIVATE lexer parser)
-find_package(Boost REQUIRED COMPONENTS unit_test_framework)
+find_package(Boost 1.67.0 REQUIRED COMPONENTS unit_test_framework)
+# It would be Boost 1.66 in a perfect world, but the tests fail to compile with
+# that: https://lists.boost.org/boost-bugs/2018/01/49711.php.
target_link_libraries(unit_tests PRIVATE Boost::disable_autolinking Boost::unit_test_framework)
install(TARGETS unit_tests RUNTIME DESTINATION bin)