Presented by KatLab.
Execution command.
$ ./make.sh
Built the executable file.
$ ls
et2019
Here.
/ // Working directory.
|
|-src // Don't add here.
| |-module // Add source codes.
| |-api // Add source codes(api).
| |-core // Don't add here.
|
|-test // Add test codes.
Normaly, please put source codes to /src/module
.
It is src
.
If add Example class
, append object name to src/Makefile.inc
.
APPL_CXXOBJS +=
APPL_CXXOBJS += \
Example.o
If you add/modify source code, you should add test cases.
- Create a file named (class name) + "Test".
- Put the test file to
/test
.
Create source codes that implement Example class.
(/src/Example.cpp
, /src/Example.h
)
Create a test file for Example class.
(ExampleTest.cpp
)
Put ExampleTest.cpp
to /test
.
Do ./gtest_all.sh
.
You can use Remote Development of Visual Studio Code.