From 445db345bb2ecc357b5d62a1a6bb000ea0a0d965 Mon Sep 17 00:00:00 2001 From: Yury Bayda Date: Mon, 28 Apr 2025 22:58:29 -0700 Subject: [PATCH] Remove main.cpp --- .github/workflows/main.yml | 3 --- CMakeLists.txt | 2 -- Makefile | 4 ---- README.md | 6 ------ main.cpp | 8 -------- 5 files changed, 23 deletions(-) delete mode 100644 main.cpp diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f84ced3..75198b6 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -25,8 +25,5 @@ jobs: - name: Build run: make build - - name: Run main - run: make run - - name: Test run: make test diff --git a/CMakeLists.txt b/CMakeLists.txt index b22e500..9d0c241 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -15,8 +15,6 @@ include(GoogleTest) enable_testing() -add_executable(main main.cpp) - file(GLOB tests test_*.cpp) foreach(test ${tests}) get_filename_component(name ${test} NAME_WE) diff --git a/Makefile b/Makefile index 575eeae..1bd5a45 100644 --- a/Makefile +++ b/Makefile @@ -8,10 +8,6 @@ build: cmake -B ${BUILDDIR} . cmake --build ${BUILDDIR} -.PHONY: run -run: - cd ${BUILDDIR} && ./main - .PHONY: test test: ctest --output-on-failure --test-dir ${BUILDDIR} diff --git a/README.md b/README.md index 3d846d8..69a06fd 100644 --- a/README.md +++ b/README.md @@ -24,12 +24,6 @@ handle all dependencies automatically. make build ``` -### Run main - -```console -make run -``` - ### Run tests ```console diff --git a/main.cpp b/main.cpp deleted file mode 100644 index 85f8daa..0000000 --- a/main.cpp +++ /dev/null @@ -1,8 +0,0 @@ -#include - -int -main() -{ - std::cout << "Hello World!\n"; - return 0; -}