summaryrefslogtreecommitdiff
path: root/cmake/Modules
Commit message (Collapse)AuthorAgeFilesLines
...
* cmake: Add quotation marks around $PATH in GrTest.cmakeAndrej Rode2020-06-211-1/+1
| | | | | | | | | | | This quotes the SHELL variable in the resulting shell scripts for execute the tests in the correct environment and allows paths with spaces. Thanks to Daniel Estévez for reporting this and providing the correct fix. Closes #3560
* cmake: Remove FindSWIG from modules and don't check for itAndrej Rode2020-06-201-141/+0
| | | | | Remove the FindSWIG module and don't check for SWIG in the main CMakeLists
* pybind: remove docstring dependency on entire moduleJosh Morman2020-06-111-3/+3
| | | | | | | | | | When the module is used as a dependency for the docstring substitution task, any change to any file in the module will cause the regeneration of the bindings for the entire module and all modules that are dependent on that one. There is still probably a better way tie the docstring substitution into the custom commands, per file
* pybind11: update binding generation scriptsJosh Morman2020-06-041-0/+4
|
* pybind: add hash check to binding file creation (#3472)mormj2020-06-041-1/+171
|
* cmake: add GrPybind for making with pybind11Josh Morman2020-06-041-0/+106
|
* pybind: removal of swig componentsJosh Morman2020-06-046-859/+4
|
* CMake/SWIG: Remove SWIG flag superfluous after 3.0.12, suppress warningMarcus Müller2020-04-111-1/+5
| | | | | | | | | SWIG complains about "Deprecated command line option: -modern. This option is now always on.". As traditional with SWIG, policy changes don't appear in any documentation; with a bit of git blaming, I found the change to have been introduced after SWIG 3.0.12.
* cmake: declare compatibility if newer than the requested versionClayton Smith2020-04-111-8/+8
| | | | | | | | | | | | | | | | | | | The GNU Radio 3.8 OOT Module Porting Guide recommends finding GNU Radio using find_package(Gnuradio "3.8" REQUIRED). GNU Radio's version check is currently strict, which prevents OOT modules from building against the master branch, which carries a version number of 3.9. To resolve this problem, I've modified the check to indicate that the GNU Radio version is compatible with the requested version so long as it is greater than or equal to the requested version. If an OOT module knows that it is incompatible with GNU Radio 3.9, it can use find_package(Gnuradio "3.8" EXACT REQUIRED) to prevent building with versions other than 3.8. The version check was copied from the CMake wiki: https://gitlab.kitware.com/cmake/community/-/wikis/doc/tutorials/How-to-create-a-ProjectConfig.cmake-file#the-foobarfoobarconfigversioncmakein-file
* cmake: GrPython: Auto-import LooseVersion into module check macroMartin Braun2020-03-301-0/+1
| | | | | GR_PYTHON_CHECK_MODULE() often needs to check versions of modulues, so we auto-import LooseVersion to maket that easier.
* Update license header to SPDX formatdevnulling2020-01-2715-195/+15
|
* Disable Python 2kMarcus Müller2020-01-042-12/+3
| | | | | | | | | | - Update SWIG settings - Update CMake - Remove Python2 references Note: This does not touch a lot of Python files, and many Python files will still work with Python 2 after this commit. However, we won't allow that in our CMake, and the support will be gone too.
* docs: Remove the sphinx manualMarc L2020-01-021-37/+0
| | | | | Going forward, everything manual-related will be consolidated into the Doxygen manual, or the wiki.
* cmake: workaround find_dependency bugBastian Bloessl2020-01-031-1/+1
|
* Use raw strings for paths substituted directly into python strings.Ryan Volz2020-01-021-2/+2
|
* cmake: Use standard way of getting python prefixSylvain Munaut2020-01-011-6/+2
| | | | | | | | | | Fixes #2006 This is exactly the same logic as is used in volk. Also the same logic used for the GR_PYTHON_RELATIVE just below ... so if it works for those on all OSes/config, no reasons it won't work here. Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
* cmake: add boost 1.71 as acceptable versionJosh Morman2020-01-011-2/+4
|
* Fix typo in Log4Cpp cmake filejapm482019-12-201-1/+1
|
* GnuradioConfig.cmake.in: honour OOT ENABLE_TESTING if it set, use default if ↵Gwenhael Goavec-Merou2019-12-191-1/+3
| | | | it not
* cmake:Modules:GnuradioConfig.cmake.in: add unit_test_framework only when ↵Gwenhael Goavec-Merou2019-12-191-3/+11
| | | | ENABLE_TESTING is ON
* add boost unit_test_framework required only when ENABLE_TESTING=ONGwenhael Goavec-Merou2019-12-191-1/+4
|
* codec2: fix support for codec2 version < 0.8Davide Gerhard2019-11-051-0/+12
| | | | | | | | | codec2 version < 0.8 doesn't provide codec2/version.h header therefore cmake discovers if it is available. fix gr-vocoder build on ubuntu < 19.04 and debian < 10 Closes: https://github.com/gnuradio/gnuradio/pull/2858#issuecomment-549391165
* FindLOG4CPP: canonical path orderingMarcus Müller2019-09-291-3/+3
| | | | | | | | | | | That means: * /usr first, * /usr/local second, * /opt only as testament to the fact that there's hilariously non-standard installations. Signed-off-by: Marcus Müller <mmueller@gnuradio.org>
* Update log4cpp cmake module to search in lib64 directories.Philip Balister2019-09-291-1/+1
| | | | Signed-off-by: Philip Balister <philip@balister.org>
* Fix typo that creates build issues with GR dependenciesEmmanuel Blot2019-08-261-1/+1
|
* Added qwt name in FindQwt.cmake necessary in some Linux DistrosJan Kraemer2019-08-231-1/+1
|
* modtool: put proper quotes when unescaped shell pathsJosh Morman2019-07-191-3/+13
| | | | | | | | | | Adds quotes to paths to prevent issues when the user has a space in their OOT shell paths Slight change to #2560 which should prevent CI from broadly failing Fixes #2443
* cmake: correct typo in FindLog4Cpp cmake moduleAndrej Rode2019-07-171-1/+1
| | | | | | | Fixes bug with empty error message on a failure to find Log4Cpp libraries. Closes #2599
* Add GR_PYTHON_RELATIVE to fix issue #2515 with runtime_swigTargets-release.cmakeToby Flynn2019-07-171-0/+13
| | | | | | | | | This commit fixes issue #2515. A new CMake variable, GR_PYTHON_RELATIVE is needed to properly create the CMake files used by OOTs when cross compiling or using sysroot based build systems see https://cmake.org/Bug/print_bug_page.php?bug_id=14367 for more information
* Fix for misc. documentation + trivial typosluz.paz2019-07-171-1/+1
| | | | | | | | | | | | | Found via `codespell -q 3 -L ans,sinc,hist,ist,ith,uint,fo -S ./volk` Fix typos in gnuradio-runtime/ Fix typos in gr-digital/ Fix typos in gr-qtgui/ Fix typos in gr-channels/ Fix typos in grc/ Fix typos gr-filter/ Fix typos in gr-uhd/ Fix typos in gr-blocks/ Fix typos in gr-fec/
* Purge gr-comedi and all references to it from mainline GNU RadioMarcus Müller2019-07-171-1/+0
| | | | | This includes the gr-comedi/ subdirectory, the build infrastructure and CMake modules referencing Comedi, and the documentation.
* Renaming the VERSION_INFO_* to VERSION_ macros consistent w/ VERSIONINGMarcus Müller2019-07-172-8/+8
|
* cmake: Allow custom library name to be supplied for FindZeroMQ modulegnieboer2019-06-161-1/+1
|
* CMake: Fixes error when both debug and release python libraries are installedgnieboer2019-06-151-4/+14
|
* cmake: fixed gsl definition add for windowsgnieboer2019-06-061-1/+1
|
* cmake: remove branching for old CMake versionsAndrej Rode2019-05-231-7/+5
| | | | | Since only CMake 3.8 or greater is supported with this version of GNU radio conditionals for older CMake versions are not necessary anymore
* cmake: incorporate SO versioning from debian downstream patchesAndrej Rode2019-05-232-31/+2
|
* cmake: Export settings for OOTsAndrej Rode2019-03-232-10/+44
|\ | | | | | | Reduce CMake code duplication needed for a OOT. Used Python version and setting if GRC is enabled are now set in GnuradioConfig.cmake.
| * cmake: leave ENABLE_PYTHON and ENABLE_GRC user configurable by OOTsAndrej Rode2019-03-112-8/+9
| | | | | | | | | | | | | | | | Initialize Python before include gnuradio-runtime This allows to provide the GR_CHECK_PYTHON_MODULE function to be available before Thrift tries to use it. Consequently the include(GrPython) was removed from FindTHRIFT
| * cmake: use TargetConfig in GnuradioConfigAndrej Rode2019-03-101-5/+2
| | | | | | | | | | Previously only the Target.cmake was used. This lead to thrift not being added to the list of dependencies to call find_dependency() on.
| * GnuradioConfig/newmod: find Thrift if it was used by GNU Radio buildMarcus Müller2019-03-091-0/+3
| |
| * CMake: export global settings into GnuradioConfig.cmake.inMarcus Müller2019-03-091-1/+38
| | | | | | | | | | | | This includes setting the Python interpreter, various installation directories and the enabledness of specific non-CMake-visible components.
| * CMake: GnuradioConfig.cmake.in cleanup, copyright yearMarcus Müller2019-03-081-5/+1
| |
* | SWIG: Output SWIG source being parsed file during buildMarcus Müller2019-03-131-1/+1
|/ | | | | This is mainly beauty. It does come in handy when one fiddles with the SWIGs too much and needs to figure out which .i broke.
* Modern CMake: Remove obsolete FindGnuradio scriptMarcus Müller2019-03-071-118/+0
| | | | | | This has been superseeded by GnuradioConfig.cmake. Credits go to Jaroslav Skarvada and Andrej Rode for figuring this out.
* newmod: update templates for new target syntaxAndrej Rode2019-03-041-3/+3
|
* cmake: Update to modern CMake usageAndrej Rode2019-03-0422-562/+876
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This includes using target based setting of includes and link libraries. This will transitively add the includes and linking flags to dependent targets. This is still a work in progress since only the dynamic libraries have been touched and not all of include_directories directives are gone yet. cmake: remove GR_INCLUDE_SUBDIRECTORY macro Previously this macro was used to inject subdirectories in the current CMake namespace. This is generally undesired and pollutes the current context. previously GNU Radio CMake had a non-default option ENABLE_STATIC_LIBS to build both, shared libraries and static libraries. This seems to be a construction taken over from autotools and serves no purpuose in CMake and complicates the library building. cmake: remove GR_LIBTOOL and la generation support This looks like it was primarily used to support projects using autotools, but comments state that the generated .la files aren't compatible with autotools anyway. cmake: Bump required CMake version to 3.8 UseSWIG cmake uses syntax which requires at least CMake 3.8 and is non-trivial to change
* cmake: Remove unused FindUSB.cmake moduleMartin Braun2019-01-081-29/+0
|
* cmake: FindQwt: Allow pkg-config to set the library nameMartin Braun2018-11-271-1/+1
| | | | | | | Currently, the library name is hard-coded to qwt-qt5 to force disambiguation from the Qt4 version. However, when pkg-config is invoked, other package names (e.g. qwt) are also permissable, since we trust pkg-config to not point us to a Qt4 version of Qwt.
* qtgui: Disallow use of Qt4Martin Braun2018-11-152-156/+2
| | | | | | Qt5 is now required. Note that many applications and examples requiring Qt are currently broken, this does not fix any of them, it just sets up our CMake environment so we can start fixing them.