Skip to content

Commit 74df1da

Browse files
committed
Update CMake with GNUInstallDirs.
1 parent a46a506 commit 74df1da

File tree

4 files changed

+14
-47
lines changed

4 files changed

+14
-47
lines changed

CMakeLists.txt

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ set(VERSION_ABI 0)
3636
set(VERSION_PATCH git)
3737

3838
cmake_policy(SET CMP0011 NEW)
39+
if(POLICY CMP0148)
40+
cmake_policy(SET CMP0148 OLD)
41+
endif()
3942

4043
# Enable generation of compile_commands.json for code completion engines
4144
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
@@ -77,13 +80,13 @@ include(FindPkgConfig)
7780
find_package(Gnuradio "3.9" REQUIRED)
7881
include(GrVersion)
7982

80-
include(GrPlatform) #define LIB_SUFFIX
83+
include(GNUInstallDirs)
8184

8285
if(NOT CMAKE_MODULES_DIR)
83-
set(CMAKE_MODULES_DIR lib${LIB_SUFFIX}/cmake)
86+
set(CMAKE_MODULES_DIR ${CMAKE_INSTALL_LIBDIR}/cmake)
8487
endif(NOT CMAKE_MODULES_DIR)
8588

86-
set(GR_INCLUDE_DIR include/dvbs2rx)
89+
set(GR_INCLUDE_DIR ${CMAKE_INSTALL_INCLUDEDIR}/dvbs2rx)
8790
set(GR_CMAKE_DIR ${CMAKE_MODULES_DIR}/dvbs2rx)
8891
set(GR_PKG_DATA_DIR ${GR_DATA_DIR}/${CMAKE_PROJECT_NAME})
8992
set(GR_PKG_DOC_DIR ${GR_DOC_DIR}/${CMAKE_PROJECT_NAME})

README

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ A complete DVB-S2 receiver is now available at:
44

55
https://github.com/igorauad/gr-dvbs2rx
66

7-
# Copyright 2018,2019 Ahmet Inan, Ron Economos
7+
# Copyright 2018-2022,2024-2025 Ahmet Inan, Ron Economos
88
#
99
# This file is part of gr-dvbs2rx
1010
#

docs/doxygen/Doxyfile.in

Lines changed: 5 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -970,12 +970,6 @@ HTML_COLORSTYLE_SAT = 100
970970

971971
HTML_COLORSTYLE_GAMMA = 80
972972

973-
# If the HTML_TIMESTAMP tag is set to YES then the footer of each generated HTML
974-
# page will contain the date and time when the page was generated. Setting
975-
# this to NO can help when comparing the output of multiple runs.
976-
977-
HTML_TIMESTAMP = NO
978-
979973
# If the HTML_DYNAMIC_SECTIONS tag is set to YES then the generated HTML
980974
# documentation will contain sections that can be hidden and shown after the
981975
# page has loaded.
@@ -1190,29 +1184,21 @@ EXT_LINKS_IN_WINDOW = NO
11901184

11911185
FORMULA_FONTSIZE = 10
11921186

1193-
# Use the FORMULA_TRANPARENT tag to determine whether or not the images
1194-
# generated for formulas are transparent PNGs. Transparent PNGs are
1195-
# not supported properly for IE 6.0, but are supported on all modern browsers.
1196-
# Note that when changing this option you need to delete any form_*.png files
1197-
# in the HTML output before the changes have effect.
1198-
1199-
FORMULA_TRANSPARENT = YES
1200-
12011187
# Enable the USE_MATHJAX option to render LaTeX formulas using MathJax
12021188
# (see http://www.mathjax.org) which uses client side Javascript for the
12031189
# rendering instead of using prerendered bitmaps. Use this if you do not
12041190
# have LaTeX installed or if you want to formulas look prettier in the HTML
12051191
# output. When enabled you may also need to install MathJax separately and
12061192
# configure the path to it using the MATHJAX_RELPATH option.
12071193

1208-
USE_MATHJAX = NO
1194+
USE_MATHJAX = @enable_mathjax@
12091195

12101196
# When MathJax is enabled you can set the default output format to be used for
12111197
# the MathJax output. Supported types are HTML-CSS, NativeMML (i.e. MathML) and
12121198
# SVG. The default value is HTML-CSS, which is slower, but has the best
12131199
# compatibility.
12141200

1215-
MATHJAX_FORMAT = HTML-CSS
1201+
MATHJAX_FORMAT = SVG
12161202

12171203
# When MathJax is enabled you need to specify the location relative to the
12181204
# HTML output directory using the MATHJAX_RELPATH option. The destination
@@ -1224,12 +1210,12 @@ MATHJAX_FORMAT = HTML-CSS
12241210
# However, it is strongly recommended to install a local
12251211
# copy of MathJax from http://www.mathjax.org before deployment.
12261212

1227-
MATHJAX_RELPATH = http://cdn.mathjax.org/mathjax/latest
1213+
MATHJAX_RELPATH = @MATHJAX2_PATH@
12281214

12291215
# The MATHJAX_EXTENSIONS tag can be used to specify one or MathJax extension
12301216
# names that should be enabled during MathJax rendering.
12311217

1232-
MATHJAX_EXTENSIONS =
1218+
MATHJAX_EXTENSIONS = TeX/AMSmath TeX/AMSsymbols
12331219

12341220
# The MATHJAX_CODEFILE tag can be used to specify a file with javascript
12351221
# pieces of code that will be used on startup of the MathJax code.
@@ -1683,20 +1669,6 @@ HAVE_DOT = @HAVE_DOT@
16831669

16841670
DOT_NUM_THREADS = 0
16851671

1686-
# By default doxygen will use the Helvetica font for all dot files that
1687-
# doxygen generates. When you want a differently looking font you can specify
1688-
# the font name using DOT_FONTNAME. You need to make sure dot is able to find
1689-
# the font, which can be done by putting it in a standard location or by setting
1690-
# the DOTFONTPATH environment variable or by setting DOT_FONTPATH to the
1691-
# directory containing the font.
1692-
1693-
DOT_FONTNAME = Helvetica
1694-
1695-
# The DOT_FONTSIZE tag can be used to set the size of the font of dot graphs.
1696-
# The default size is 10pt.
1697-
1698-
DOT_FONTSIZE = 10
1699-
17001672
# By default doxygen will tell dot to use the Helvetica font.
17011673
# If you specify a different font using DOT_FONTNAME you can use DOT_FONTPATH to
17021674
# set the path where dot can find it.
@@ -1790,7 +1762,7 @@ DIRECTORY_GRAPH = YES
17901762
# HTML_FILE_EXTENSION to xhtml in order to make the SVG files
17911763
# visible in IE 9+ (other browsers do not have this requirement).
17921764

1793-
DOT_IMAGE_FORMAT = png
1765+
DOT_IMAGE_FORMAT = svg
17941766

17951767
# If DOT_IMAGE_FORMAT is set to svg, then this option can be set to YES to
17961768
# enable generation of interactive SVG images that allow zooming and panning.
@@ -1838,14 +1810,6 @@ DOT_GRAPH_MAX_NODES = 50
18381810

18391811
MAX_DOT_GRAPH_DEPTH = 0
18401812

1841-
# Set the DOT_TRANSPARENT tag to YES to generate images with a transparent
1842-
# background. This is disabled by default, because dot on Windows does not
1843-
# seem to support this out of the box. Warning: Depending on the platform used,
1844-
# enabling this option may lead to badly anti-aliased labels on the edges of
1845-
# a graph (i.e. they become hard to read).
1846-
1847-
DOT_TRANSPARENT = NO
1848-
18491813
# Set the DOT_MULTI_TARGETS tag to YES allow dot to generate multiple output
18501814
# files in one run (i.e. multiple -o and -T options on the command line). This
18511815
# makes dot run faster, but since only newer versions of dot (>1.8.10)

lib/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
########################################################################
1010
# Setup library
1111
########################################################################
12-
include(GrPlatform) #define LIB_SUFFIX
12+
include(GNUInstallDirs)
1313

1414
list(APPEND dvbs2rx_sources
1515
bbdeheader_bb_impl.cc
@@ -28,7 +28,7 @@ add_library(gnuradio-dvbs2rx SHARED ${dvbs2rx_sources})
2828
target_link_libraries(gnuradio-dvbs2rx gnuradio::gnuradio-runtime)
2929
target_include_directories(gnuradio-dvbs2rx
3030
PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/../include>
31-
PUBLIC $<INSTALL_INTERFACE:include>
31+
PUBLIC $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
3232
)
3333
set_target_properties(gnuradio-dvbs2rx PROPERTIES DEFINE_SYMBOL "gnuradio_dvbs2rx_EXPORTS")
3434

0 commit comments

Comments
 (0)