You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+28-12Lines changed: 28 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -62,23 +62,35 @@ The respository has two parts - [Parser](https://github.com/AustinBrunkhorst/CPP
62
62
63
63
This is basic example of adding the prebuild step to an existing target in CMake.
64
64
65
-
**Note:** this assumes you have created empty files for `${META_GENERATED_HEADER}` and `${META_GENERATED_SOURCE}` and added it to the list of sources when calling `add_executable( )`. Otherwise, CMake will complain about the files not existing initially.
66
-
67
65
```CMake
68
-
# assume a target has been created, with add_executable( ... )
69
66
set(PROJECT_NAME "Example")
70
67
68
+
# assume this contains header files for this project
69
+
set(PROJECT_HEADER_FILES ...)
70
+
71
+
# assume this contains source files for this project
0 commit comments