File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,19 +9,19 @@ set -e # Exit immediately if a command fails
99PROJECT_EXEC=" ./build/bin/cpp_lab_project"
1010BUILD_DIR=" ./build"
1111
12- if [ ! -d " build" ]; then
13- echo " Build directory not found. Creating build directory..."
12+ # if [ ! -d "build" ]; then
13+ # echo "Build directory not found. Creating build directory..."
1414
15- rm -rf build
16- mkdir build
17- cd build || exit
15+ # rm -rf build
16+ # mkdir build
17+ # cd build || exit
1818
19- cmake ..
20- cd ..
19+ # cmake ..
20+ # cd ..
2121
22- else
23- echo " Build directory already exists."
24- fi
22+ # else
23+ # echo "Build directory already exists."
24+ # fi
2525
2626clear
2727echo " =============================="
3838
3939echo " "
4040echo " ===========>> Building project..."
41+ cmake -G " Unix Makefiles" -B " $BUILD_DIR "
4142cmake --build " $BUILD_DIR "
4243
4344echo " "
You can’t perform that action at this time.
0 commit comments