forked from analogdevicesinc/libiio
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bindings : **NB** Add Cmake flags to turn on bindings (Default=off)
Many distributions have patches to change the CMake to turn off bindings This internalize that to the upstream package in a sustainable manner. This takes existing "PYTHON_BINDINGS", "CSHARP_BINDINGS" and "MATLAB_BINDINGS" cmake flags and moves them to the top level cmake, where they are defaulted off, and most distribution maintainers want. This changes the default behavior, from build with all bindings found, to only build bindings that are turned on via cmake. Signed-off-by: Robin Getz <[email protected]>
- Loading branch information
Showing
5 changed files
with
85 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,11 @@ | ||
add_subdirectory(csharp) | ||
add_subdirectory(matlab) | ||
add_subdirectory(python) | ||
if (CSHARP_BINDINGS) | ||
add_subdirectory(csharp) | ||
endif() | ||
|
||
if (MATLAB_BINDINGS) | ||
add_subdirectory(matlab) | ||
endif() | ||
|
||
if (PYTHON_BINDINGS) | ||
add_subdirectory(python) | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters