Skip to content

Commit

Permalink
CMake: fix installing c++ bindings
Browse files Browse the repository at this point in the history
Signed-off-by: Lukas Rusak <lorusak@gmail.com>
  • Loading branch information
lrusak authored and dNechita committed Feb 11, 2025
1 parent 83d9564 commit 4537c21
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,10 @@ endif()

set(IIO_PUBLIC_HEADERS include/iio/iio.h;include/iio/iio-debug.h;include/iio/iio-lock.h;include/iio/iiod-client.h)

if (CPP_BINDINGS)
list(APPEND IIO_PUBLIC_HEADERS bindings/cpp/iiopp.h)
endif()

set_target_properties(iio PROPERTIES
VERSION ${PROJECT_VERSION}
SOVERSION ${PROJECT_VERSION_MAJOR}
Expand Down Expand Up @@ -338,7 +342,6 @@ set(DOXYGEN_INPUT "${CMAKE_SOURCE_DIR}")
set(DOXYGEN_STRIP_FROM_PATH "${CMAKE_SOURCE_DIR}")

if (CPP_BINDINGS)
list(APPEND LIBIIO_HEADERS bindings/cpp/iiopp.h)
set(DOXYGEN_ENABLED_SECTIONS CPP_BINDINGS)
set(DOXYGEN_INPUT "${DOXYGEN_INPUT} ${CMAKE_SOURCE_DIR}/bindings/cpp/")
set(DOXYGEN_STRIP_FROM_PATH "${CMAKE_SOURCE_DIR}/bindings/cpp/")
Expand Down

0 comments on commit 4537c21

Please sign in to comment.