diff options
-rw-r--r-- | doc/dlt_for_developers.md | 8 | ||||
-rw-r--r-- | src/lib/CMakeLists.txt | 1 |
2 files changed, 3 insertions, 6 deletions
diff --git a/doc/dlt_for_developers.md b/doc/dlt_for_developers.md index 78c3201..844eb40 100644 --- a/doc/dlt_for_developers.md +++ b/doc/dlt_for_developers.md @@ -24,12 +24,8 @@ within the standard include directory. This example gives an overview of DLT usage inside an application by using a minimal code example. Detailed information about the API can be found later in this document. -Please note that the #include statement depends on the means by which you are -incorporating the DLT library into your project. The `<dlt/dlt.h>` form (i.e. -with a directory prefix) seen here is necessary when you are using the CMake -Config file (see below). If you are using pkg-config instead, then for -backward-compatibility reasons it is also possible to use `#include <dlt.h>`. -This is not recommended for new code, though. +Please note that for backwards compatibility also the legacy #include statement +`<dlt.h>` is supported. Using it for new code is not recommended, though. ``` #include <dlt/dlt.h> diff --git a/src/lib/CMakeLists.txt b/src/lib/CMakeLists.txt index 5a94bef..acf1587 100644 --- a/src/lib/CMakeLists.txt +++ b/src/lib/CMakeLists.txt @@ -51,6 +51,7 @@ target_include_directories(dlt $<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include/dlt> $<BUILD_INTERFACE:${PROJECT_BINARY_DIR}/include/dlt> $<INSTALL_INTERFACE:include> + $<INSTALL_INTERFACE:include/dlt> ) if(WITH_LIB_SHORT_VERSION) |