diff --git a/CMakeLists.txt b/CMakeLists.txt index 28cb41a..99133dd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -34,3 +34,6 @@ ENDIF(WIN32) add_executable(SplitStringTest SplitStringTest.cpp) cm_example_project(SplitStringTest) + +add_executable(CreateBinaryH CreateBinaryH.cpp) +cm_example_project(CreateBinaryH) \ No newline at end of file diff --git a/CreateBinaryH.cpp b/CreateBinaryH.cpp new file mode 100644 index 0000000..bdbbaea --- /dev/null +++ b/CreateBinaryH.cpp @@ -0,0 +1,19 @@ +#include +#include + +using namespace hgl; +using namespace std; + +void main() +{ + char str[9]; + + str[8]=0; + + for(unsigned int i=0;i<256;i++) + { + Integer2Binary(str,i); + + cout<<"constexpr uint8 HGL_B"<