Compare commits
2 Commits
c758a07891
...
f4cbd499a8
| Author | SHA1 | Date | |
|---|---|---|---|
| f4cbd499a8 | |||
| 40c3da0389 |
17
README.md
17
README.md
@@ -14,14 +14,15 @@ Low-level C++ library that covers next areas:
|
|||||||
* Metaprogramming
|
* Metaprogramming
|
||||||
## CMake
|
## CMake
|
||||||
This library tightly integrated with CMake by providing some macro:
|
This library tightly integrated with CMake by providing some macro:
|
||||||
* pip_code_model(<out_var> file0 [file1 ...] [OPTIONS opt0 [opt1 ...] ] [ABSOLUTE])
|
|
||||||
Generate code model files for source files file0 [file1 ...]
|
|
||||||
|
|
||||||
Options you can see by exec "pip_cmg -h"
|
* `pip_code_model(<out_var> file0 [file1 ...] [OPTIONS opt0 [opt1 ...] ] [ABSOLUTE])`
|
||||||
If not ABSOLUTE source files will be prepended by CMAKE_CURRENT_SOURCE_DIR
|
Generate code model files for source files file0 [file1 ...].
|
||||||
You should add ${<out_var>} to your target
|
|
||||||
|
|
||||||
* pip_resources(<out_var> file)
|
Options you can see by exec "pip_cmg -h".
|
||||||
|
If not ABSOLUTE source files will be prepended by ${CMAKE_CURRENT_SOURCE_DIR}.
|
||||||
|
You should add ${<out_var>} to your target.
|
||||||
|
|
||||||
Generate C++ files for resource file
|
* `pip_resources(<out_var> file)`
|
||||||
You should add ${<out_var>} to your target
|
|
||||||
|
Generate C++ files for resource file.
|
||||||
|
You should add ${<out_var>} to your target.
|
||||||
|
|||||||
3
main.cpp
3
main.cpp
@@ -115,9 +115,10 @@ PIKbdListener kbd;
|
|||||||
|
|
||||||
|
|
||||||
int main(int argc, char * argv[]) {
|
int main(int argc, char * argv[]) {
|
||||||
PIStringList dl = PISerial::availableDevices();
|
/*PIStringList dl = PISerial::availableDevices();
|
||||||
piCout << dl;
|
piCout << dl;
|
||||||
PISerial ser(dl[0]);
|
PISerial ser(dl[0]);
|
||||||
piCout << ser.open(PIIODevice::ReadWrite) << &ser;
|
piCout << ser.open(PIIODevice::ReadWrite) << &ser;
|
||||||
|
*/
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user