Changeset View
Changeset View
Standalone View
Standalone View
README.md
Show First 20 Lines • Show All 42 Lines • ▼ Show 20 Line(s) | 40 | On creating targets add the library with | |||
---|---|---|---|---|---|
43 | target_link_libraries(<target> Alkimia::alkimia) | 43 | target_link_libraries(<target> Alkimia::alkimia) | ||
44 | 44 | | |||
45 | 45 | | |||
46 | In source code include header file for example with | 46 | In source code include header file for example with | ||
47 | 47 | | |||
48 | #include <alkimia/alkvalue.h> | 48 | #include <alkimia/alkvalue.h> | ||
49 | 49 | | |||
50 | ... | 50 | ... | ||
51 | | ||||
52 | Normally, adding the Alkimia library to a CMake target is enough to add all the required includes | ||||
53 | for compilation. In cases where libraries are defined without library dependencies, such as when | ||||
54 | creating static libraries, by default the location of the Alkimia include files is not added for | ||||
55 | compilation, resulting in compile errors. This can be fixed by adding the following line: | ||||
56 | | ||||
57 | include_directories(${LibAlkimia[5]_INCLUDE_DIR}) | ||||
58 | | ||||
59 | For compatibility with older alkimia releases the related cmake variable LIBALKIMIA_INCLUDE_DIR | ||||
60 | is also available. Please note that this variable is deprecated and may be removed in future. |