Skip to content

Commit

Permalink
Cmake: Make sure bindings are installed after doc
Browse files Browse the repository at this point in the history
So, if a specific doc location is necessary all the Cmake vars
are set up properly.

Signed-off-by: Robin Getz <[email protected]>
  • Loading branch information
rgetz committed Apr 8, 2020
1 parent 7420fb0 commit 33b1f15
Showing 1 changed file with 10 additions and 13 deletions.
23 changes: 10 additions & 13 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -345,19 +345,6 @@ if(NOT SKIP_INSTALL_ALL)
install(FILES ${LIBIIO_PC} DESTINATION "${INSTALL_PKGCONFIG_DIR}")
endif()

#set(SETUP_PY ${CMAKE_CURRENT_SOURCE_DIR}/bindings/python/setup.py)
#configure_file(python/setup.py.in ${SETUP_PY} @ONLY)

option(CSHARP_BINDINGS "Install C# bindings" OFF)
option(PYTHON_BINDINGS "Install Python bindings" OFF)
option(MATLAB_BINDINGS "Build MATLAB bindings" OFF)
add_subdirectory(bindings)

if (WITH_MATLAB_BINDINGS_API)
list(APPEND LIBIIO_EXTRA_HEADERS bindings/matlab/iio-wrapper.h)
add_definitions(-DMATLAB_BINDINGS_API=1)
endif()

if(WITH_TESTS)
add_subdirectory(tests)
endif()
Expand Down Expand Up @@ -429,6 +416,16 @@ if(WITH_DOC)
endif()
endif()

option(CSHARP_BINDINGS "Install C# bindings" OFF)
option(PYTHON_BINDINGS "Install Python bindings" OFF)
option(MATLAB_BINDINGS "Build MATLAB bindings" OFF)
add_subdirectory(bindings)

if (WITH_MATLAB_BINDINGS_API)
list(APPEND LIBIIO_EXTRA_HEADERS bindings/matlab/iio-wrapper.h)
add_definitions(-DMATLAB_BINDINGS_API=1)
endif()

option(WITH_MAN "Generate on-line reference manuals (man pages)" OFF)
add_subdirectory(man)

Expand Down

0 comments on commit 33b1f15

Please sign in to comment.