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
+24-1Lines changed: 24 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -42,6 +42,29 @@ The C++/Tcl itself consists of these files:
42
42
43
43
We're using cmake to generate makefiles. This is pretty standard in the C++ world.
44
44
45
-
In order to compile the tests and the examples you may need to change the compiler options to fit your particular environment (different paths to the Tcl headers and libs, another compiler, etc.). By default tests and examples are not built, but you can build them with the test and examples make targets respectfully.
45
+
In order to compile the tests and the examples you may need to change the compiler options to fit your particular environment (different paths to the Tcl headers and libs, another compiler, etc.). Tests and examples are built by default when building cpptcl (although not when included as a cmake subproject). You can disable the tests and examples by setting `-DCPPTCL_TEST=OFF` and `-DCPPTCL_EXAMPLES=OFF` respectively.
46
+
47
+
---
48
+
49
+
cmake
50
+
51
+
The cpptcl install includes a cpptcl-config.cmake and target files for easy inclusion using cmake. You can therefore use `find_package(cpptcl)` to add the dependency. It will expose the `cpptcl_INCLUDE_DIR` variable with the header file location and the following targets to link against:
52
+
53
+
cpptcl::cpptcl
54
+
cpptcl::cpptcl_static
55
+
cpptcl::cpptcl_runtime
56
+
57
+
Here's a simple example of including cpptcl in your CMakeLists.txt file:
0 commit comments