Skip to content
Snippets Groups Projects
Commit 8b85621d authored by Lukáš Paukert's avatar Lukáš Paukert
Browse files

Added run script for weight calculation

parent 3f70adce
No related branches found
No related tags found
No related merge requests found
......@@ -9,6 +9,6 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
# Add subdirectory SQLiteCpp with all necessary files
add_subdirectory(lib/SQLiteCpp)
 
add_executable(main src/main.cpp)
add_executable(weight_calculation src/main.cpp)
 
target_link_libraries(main SQLiteCpp)
target_link_libraries(weight_calculation SQLiteCpp)
......@@ -4,8 +4,5 @@
- knihovna pro práci s databází SQLite:
- ke stažení [ZDE](https://github.com/SRombauts/SQLiteCpp/releases)
- rozbalit do adresáře ```lib``` a složku přejmenovat na ```SQLiteCpp```
- knihovna pro práci s JSON soubory:
- ke stažení [ZDE](https://github.com/nlohmann/json/releases)
- stačí stáhnout hlavičkový soubor ```json.hpp``` a umístit ho do adresáře ```lib```
- pro sestavení lze využít skript ```build.sh```
- binárka se poté nachází v ```build/main```, je nutné ji spustit z adresáře ```build```
- pro spuštění lze využít skript ```run.sh```
#!/bin/bash
# Make build first
./build.sh
cd build
echo "=================================="
echo "Calculating term weights:"
echo "=================================="
time ./weight_calculation
echo "=================================="
echo "Calculation completed"
echo "=================================="
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment