Skip to content
/ GitRepoTemplate Public template

Cmake, Travis gibi toolları kullanarak google test içeren basit bir C++ projesi oluşturma amacıyla açılan repo

License

Notifications You must be signed in to change notification settings

yusufdundar/GitRepoTemplate

Repository files navigation

C++, Cmake, Travis ve GoogleTest içeren proje şablonu

Cmake, Travis gibi toolları kullanarak Google Test (gTest) içeren basit bir C++ projesi oluşturma amacıyla açılan template repodur. Projesinde bu toolları kullanmak isteyenler, konfigurasyon dosyalarının içeriğini ve proje yapısını örnek alabilirler.

Build Status License: MIT

Build etmek için:

Kök dizin içerisinde:

mkdir build
cd build
cmake ..
make

komutlarını sırasıyla yazmanız yeterlidir. Sonrasında test klasörünün içinde ExampleTests isimli executable'ın oluştuğunu göreceksiniz. Çalıştırıldığında karşımıza aşağıdaki gibi ekran gelecektir:

[==========] Running 2 tests from 1 test suite.
[----------] Global test environment set-up.
[----------] 2 tests from ExampleTests
[ RUN      ] ExampleTests.Accumulator
[       OK ] ExampleTests.Accumulator (0 ms)
[ RUN      ] ExampleTests.Squre
[       OK ] ExampleTests.Squre (0 ms)
[----------] 2 tests from ExampleTests (0 ms total)

[----------] Global test environment tear-down
[==========] 2 tests from 1 test suite ran. (0 ms total)
[  PASSED  ] 2 tests.

About

Cmake, Travis gibi toolları kullanarak google test içeren basit bir C++ projesi oluşturma amacıyla açılan repo

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages