File tree Expand file tree Collapse file tree 2 files changed +25
-1
lines changed Expand file tree Collapse file tree 2 files changed +25
-1
lines changed Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ set -e
3
+
4
+ # remove old build if any
5
+ if [ -f " app/gyt" ]; then
6
+ rm -rf app/gyt
7
+ fi
8
+
9
+ # Print the selected build type
10
+ echo " Selected build type: $BUILD_TYPE "
11
+ echo " Building the project... This will take a while to install dependencies for the first time."
12
+
13
+ # Run CMake with the selected build type
14
+ cmake .. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS=1 -DBUILD_TESTS=ON -G Ninja
15
+
16
+ # Build the project
17
+ ninja
18
+
19
+ # Tests
20
+ ctest
21
+
22
+ # symlink - so I can run it like gyt [arguments....]
23
+ sudo rm /usr/local/bin/gyt
24
+ sudo ln -s " $( pwd) /app/gyt" /usr/local/bin/gyt
Original file line number Diff line number Diff line change 1
1
add_executable (tests tests.cpp repository_t.cpp)
2
2
target_include_directories (tests PUBLIC ../ext )
3
3
4
- target_link_libraries (tests PUBLIC repository)
4
+ target_link_libraries (tests PUBLIC boost_libraries repository)
5
5
6
6
# allow user to run tests with `make test` or `ctest`
7
7
include (../cmake/Catch.cmake)
You can’t perform that action at this time.
0 commit comments