Commit Graph

31 Commits

Author SHA1 Message Date
Steve Markgraf
d6ca2b0fc5 Fix for CMake < 3.12.0
As several current LTS distributions currently ship with CMake
< 3.12.0, add a work-around for CMake Issue 16967.

Otherwise we get:
CMake Error at
/usr/share/cmake-3.7/Modules/CheckCXXSourceCompiles.cmake:64 (try_compile):
   Unknown extension ".cxx" for file

     /tmp/rtl-sdr/build/CMakeFiles/CMakeTmp/src.cxx

   try_compile() works only for enabled languages.  Currently these are:

     C
2020-03-02 21:11:40 +01:00
Steve Markgraf
849f8efca4 Modernize CMake
New minimum version is CMake 3.7.2.

This patch has been rebased to incorporate changes that happened
since the creation of the original patch.

Original Author: A. Maitland Bottoms  <bottoms@debian.org>, 07 Sep 2018
2020-02-26 23:55:32 +01:00
Steve Markgraf
be2e4f899a set CMake policy CMP0075 if it exists
Otherwise newer versions of CMake are throwing a warning.
2020-01-19 16:56:51 +01:00
leonsal
bd73737c49 allow building librtlsdr as CMake subproject
Replace CMAKE_SOURCE_DIR by PROJECT_SOURCE_DIR in main CMakeLists.txt
to fix CMake errors when building librtlsdr as a subproject.
2019-11-12 21:09:05 +01:00
Steve Markgraf
81833a1cf6 lib: disable usbfs zero-copy support by default
Although we added a detection mechanism for the presence of the Kernel
bug earlier, reading from the incorrectly mapped memory might cause a
bus error on some ARM systems.

With the overall performance benefit being rather minimal for the
data rates of rtl-sdr, disable zero-copy by default.
2019-07-16 23:49:48 +02:00
Steve Markgraf
c4452b6d5a change version to 0.6git
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2018-10-07 01:00:49 +02:00
Steve Markgraf
1f0eafe604 change version to 0.6.0
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2018-08-26 14:54:51 +02:00
Martin Hauke
326b0e3acc Fix build with MinGW
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2018-05-01 14:13:00 +02:00
Steve Markgraf
d93819d29d change version to 0.6git
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2018-05-01 12:46:31 +02:00
Steve Markgraf
9ca8780df7 change version to 0.5.4
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2018-04-29 00:30:45 +02:00
Hoernchen
b04c2f9f03 fix for msvc14 2017-09-19 19:26:49 +02:00
Steve Markgraf
03a40c44f5 change version to 0.5.3git
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2014-02-08 14:46:26 +01:00
Steve Markgraf
df9596b2d1 change version to 0.5.3
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2014-02-07 02:04:24 +01:00
Steve Markgraf
be8716b2c8 cflags: add -Wdeclaration-after-statement
This allows people working on the code to spot the
most common error that breaks the MSVC build

Signed-off-by: Steve Markgraf <steve@steve-m.de>
2014-01-24 17:45:55 +01:00
Steve Markgraf
2890fe96e0 change version to 0.5.2git
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2013-12-16 21:31:08 +01:00
Steve Markgraf
2d0eaa898d change version to 0.5.2
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2013-12-12 00:26:43 +01:00
Steve Markgraf
965a4ab5e9 build: don't warn on unused parameters
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2013-11-04 22:12:09 +01:00
Steve Markgraf
fda22c6a1d change version to 0.5.1git
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2013-11-04 21:43:17 +01:00
Steve Markgraf
55694f0750 new version: 0.5.1
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2013-10-29 15:35:52 +01:00
Steve Markgraf
390b560e4a change version to 0.5git
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2013-06-12 18:49:38 +02:00
Steve Markgraf
af1e2d29e8 bump version to 0.5.0
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2013-06-04 21:04:10 +02:00
Steve Markgraf
3e17ef2b55 lib: don't detach kernel driver by default
Since this feature also disconnects running instances
of librtlsdr that claimed the device, it is now disabled
by default and can only be enabled at compile time.

To enable it when building with cmake:
cmake . -DDETACH_KERNEL_DRIVER=ON

To enable it when building with automake:
./configure --enable-driver-detach

Signed-off-by: Steve Markgraf <steve@steve-m.de>
2013-06-04 20:57:43 +02:00
Dimitri Stolnikov
ce341fe53b cmake: add version module 2013-06-04 20:18:56 +02:00
Jaroslav Škarvada
a5dd532cbb rtl-sdr: add support for lib64 (e.g. Fedora)
Another possibility is to use the GrPlatform.cmake module.

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2013-04-14 17:05:08 +02:00
Dimitri Stolnikov
0c7ba8e03e don't install udev rules by default, as it may pollute the system
For cmake call with -DINSTALL_UDEV_RULES=ON for the rules to be
installed during the default install/uninstall stages.

For autotools call "make install-udev-rules" or "make uninstall-udev-

The rules file will be installed to "/etc/udev/rules.d".
2012-09-08 16:37:56 +02:00
Dimitri Stolnikov
0fb8543dde install (and uninstall) udev rules file 2012-09-02 22:15:55 +02:00
Dimitri Stolnikov
5371f206f3 install pkg-config file when building with cmake 2012-05-12 12:34:21 +02:00
Dimitri Stolnikov
e5e68c6524 compile with warnings enabled 2012-04-25 22:36:56 +02:00
Dimitri Stolnikov
030c787cfa cmake & autotools fixes from previous commit 2012-04-02 21:42:24 +02:00
Hoernchen
229ebd2ff2 add win32 compatibility
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2012-04-02 21:00:26 +02:00
Dimitri Stolnikov
6322c9343d add preliminary cmake build system 2012-04-01 16:52:41 +02:00