Skip to content

Commit 6dd9c8b

Browse files
committed
adding script and instructions to produce single header. Haven't tested the header but should work. I will add some tests to test the combined header.
1 parent 9121e4f commit 6dd9c8b

File tree

4 files changed

+15
-0
lines changed

4 files changed

+15
-0
lines changed

CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,8 @@ add_subdirectory(test)
3535
add_subdirectory(doc)
3636

3737
add_library(${PROJECT_NAME} STATIC ${SOURCE})
38+
39+
add_custom_target(release
40+
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
41+
COMMAND ${CMAKE_SOURCE_DIR}/scripts/create_single_header.sh
42+
DEPENDS ${PROJECT_NAME})

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,14 @@ cmake ..
3232
make
3333
```
3434

35+
## Scripts
36+
37+
To use the scripts in `scripts/` you will need to install the requirements
38+
from the top level directory.
39+
```bash
40+
pip install -r script-requirements.txt
41+
```
42+
3543
## Contributing
3644

3745
I welcome all help! Please feel free to fork and start some pull requests!

script-requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Quom==1.2.0

scripts/create_single_header.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
quom -I include -I src src/dbc.cpp build/libdbc.hpp

0 commit comments

Comments
 (0)