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
Eventually, you can remove any unused files, such as the standalone directory or irrelevant github workflows for your project.
43
42
Feel free to replace the License with one suited for your project.
44
43
45
-
To cleanly separate the library and subproject code, the outer `CMakeList.txt` only defines the library itself while the tests and other subprojects are self-contained in their own directories.
44
+
To cleanly separate the library and subproject code, the outer `CMakeList.txt` only defines the library itself while the tests and other subprojects are self-contained in their own directories.
46
45
During development it is usually convenient to [build all subprojects at once](#build-everything-at-once).
47
46
48
47
### Build and run the standalone target
@@ -64,7 +63,7 @@ cmake -S test -B build/test
64
63
cmake --build build/test
65
64
CTEST_OUTPUT_ON_FAILURE=1 cmake --build build/test --target test
66
65
67
-
# or simply call the executable:
66
+
# or simply call the executable:
68
67
./build/test/Py2CppTests
69
68
```
70
69
@@ -144,7 +143,7 @@ Additional arguments can be passed to the analyzers by setting the `CLANG_TIDY_A
144
143
145
144
Ccache can be enabled by configuring with `-DUSE_CCACHE=<ON | OFF>`.
146
145
147
-
## FAQ
146
+
## ❓ FAQ
148
147
149
148
> Can I use this for header-only libraries?
150
149
@@ -165,7 +164,7 @@ Use this as the main directory for best IDE support.
165
164
> I see you are using `GLOB` to add source files in CMakeLists.txt. Isn't that evil?
166
165
167
166
Glob is considered bad because any changes to the source file structure [might not be automatically caught](https://cmake.org/cmake/help/latest/command/file.html#filesystem) by CMake's builders and you will need to manually invoke CMake on changes.
168
-
I personally prefer the `GLOB` solution for its simplicity, but feel free to change it to explicitly listing sources.
167
+
I personally prefer the `GLOB` solution for its simplicity, but feel free to change it to explicitly listing sources.
169
168
170
169
> I want create additional targets that depend on my library. Should I modify the main CMakeLists to include them?
0 commit comments