aboutsummaryrefslogtreecommitdiffstats
path: root/mpm/include
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2018-11-13 21:53:22 -0800
committerBrent Stapleton <bstapleton@g.hmc.edu>2018-11-14 14:10:09 -0800
commita69ab0c23a0c38e3fed3e412df36538d8959d23c (patch)
treee6669a138dad84f79c46588f43a38c69dda90246 /mpm/include
parent4247f025020d7dd1f696dfbd3cce248957d6ace7 (diff)
downloaduhd-a69ab0c23a0c38e3fed3e412df36538d8959d23c.tar.gz
uhd-a69ab0c23a0c38e3fed3e412df36538d8959d23c.tar.bz2
uhd-a69ab0c23a0c38e3fed3e412df36538d8959d23c.zip
cmake: Update coding style to use lowercase commands
Also updates our coding style file. Ancient CMake versions required upper-case commands. Later command names became case-insensitive. Now the preferred style is lower-case. Run the following shell code (with GNU compliant sed): cmake --help-command-list | grep -v "cmake version" | while read c; do echo 's/\b'"$(echo $c | tr '[:lower:]' '[:upper:]')"'\(\s*\)(/'"$c"'\1(/g' done > convert.sed \ && git ls-files -z -- bootstrap '*.cmake' '*.cmake.in' \ '*CMakeLists.txt' | xargs -0 gsed -i -f convert.sed && rm convert.sed (Make sure the backslashes don't get mangled!)
Diffstat (limited to 'mpm/include')
-rw-r--r--mpm/include/CMakeLists.txt2
-rw-r--r--mpm/include/mpm/CMakeLists.txt20
-rw-r--r--mpm/include/mpm/ad9361/CMakeLists.txt2
-rw-r--r--mpm/include/mpm/ad937x/CMakeLists.txt2
-rw-r--r--mpm/include/mpm/dboards/CMakeLists.txt10
-rw-r--r--mpm/include/mpm/i2c/CMakeLists.txt2
-rw-r--r--mpm/include/mpm/spi/CMakeLists.txt2
-rw-r--r--mpm/include/mpm/types/CMakeLists.txt2
8 files changed, 21 insertions, 21 deletions
diff --git a/mpm/include/CMakeLists.txt b/mpm/include/CMakeLists.txt
index 83ee6bd09..49ffd9df9 100644
--- a/mpm/include/CMakeLists.txt
+++ b/mpm/include/CMakeLists.txt
@@ -4,4 +4,4 @@
# SPDX-License-Identifier: GPL-3.0
#
-ADD_SUBDIRECTORY(mpm)
+add_subdirectory(mpm)
diff --git a/mpm/include/mpm/CMakeLists.txt b/mpm/include/mpm/CMakeLists.txt
index 44ea1dedb..6d64ba61b 100644
--- a/mpm/include/mpm/CMakeLists.txt
+++ b/mpm/include/mpm/CMakeLists.txt
@@ -3,19 +3,19 @@
#
# SPDX-License-Identifier: GPL-3.0
#
-INSTALL(FILES
+install(FILES
xbar_iface.hpp
exception.hpp
DESTINATION ${INCLUDE_DIR}/mpm
)
-IF(ENABLE_MYKONOS)
- ADD_SUBDIRECTORY(ad937x)
-ELSEIF(ENABLE_E320)
- ADD_SUBDIRECTORY(ad9361)
-ENDIF(ENABLE_MYKONOS)
+if(ENABLE_MYKONOS)
+ add_subdirectory(ad937x)
+elseif(ENABLE_E320)
+ add_subdirectory(ad9361)
+endif(ENABLE_MYKONOS)
-ADD_SUBDIRECTORY(chips)
-ADD_SUBDIRECTORY(dboards)
-ADD_SUBDIRECTORY(spi)
-ADD_SUBDIRECTORY(types)
+add_subdirectory(chips)
+add_subdirectory(dboards)
+add_subdirectory(spi)
+add_subdirectory(types)
diff --git a/mpm/include/mpm/ad9361/CMakeLists.txt b/mpm/include/mpm/ad9361/CMakeLists.txt
index a3f23de05..94ea655a7 100644
--- a/mpm/include/mpm/ad9361/CMakeLists.txt
+++ b/mpm/include/mpm/ad9361/CMakeLists.txt
@@ -5,7 +5,7 @@
#
-INSTALL(FILES
+install(FILES
ad9361_ctrl.hpp
e320_defaults.hpp
DESTINATION ${INCLUDE_DIR}/mpm/catalina
diff --git a/mpm/include/mpm/ad937x/CMakeLists.txt b/mpm/include/mpm/ad937x/CMakeLists.txt
index de27f322e..2ccd141f4 100644
--- a/mpm/include/mpm/ad937x/CMakeLists.txt
+++ b/mpm/include/mpm/ad937x/CMakeLists.txt
@@ -3,7 +3,7 @@
#
# SPDX-License-Identifier: GPL-3.0
#
-INSTALL(FILES
+install(FILES
adi_ctrl.hpp
ad937x_ctrl.hpp
DESTINATION ${INCLUDE_DIR}/mpm/mykonos
diff --git a/mpm/include/mpm/dboards/CMakeLists.txt b/mpm/include/mpm/dboards/CMakeLists.txt
index 6b95e8ebb..03a5404bc 100644
--- a/mpm/include/mpm/dboards/CMakeLists.txt
+++ b/mpm/include/mpm/dboards/CMakeLists.txt
@@ -3,14 +3,14 @@
#
# SPDX-License-Identifier: GPL-3.0-or-later
#
-IF(ENABLE_MAGNESIUM)
- INSTALL(FILES
+if(ENABLE_MAGNESIUM)
+ install(FILES
magnesium_manager.hpp
DESTINATION ${INCLUDE_DIR}/mpm/dboards
)
-ELSEIF(ENABLE_E320)
- INSTALL(FILES
+elseif(ENABLE_E320)
+ install(FILES
neon_manager.hpp
DESTINATION ${INCLUDE_DIR}/mpm/dboards
)
-ENDIF(ENABLE_MAGNESIUM)
+endif(ENABLE_MAGNESIUM)
diff --git a/mpm/include/mpm/i2c/CMakeLists.txt b/mpm/include/mpm/i2c/CMakeLists.txt
index 13851bca0..3fb4cdcb9 100644
--- a/mpm/include/mpm/i2c/CMakeLists.txt
+++ b/mpm/include/mpm/i2c/CMakeLists.txt
@@ -4,7 +4,7 @@
# SPDX-License-Identifier: GPL-3.0-or-later
#
-INSTALL(FILES
+install(FILES
i2c_iface.hpp
i2c_regs_iface.hpp
DESTINATION ${INCLUDE_DIR}/mpm/i2c
diff --git a/mpm/include/mpm/spi/CMakeLists.txt b/mpm/include/mpm/spi/CMakeLists.txt
index 6c961d266..c04c240f6 100644
--- a/mpm/include/mpm/spi/CMakeLists.txt
+++ b/mpm/include/mpm/spi/CMakeLists.txt
@@ -4,7 +4,7 @@
# SPDX-License-Identifier: GPL-3.0
#
-INSTALL(FILES
+install(FILES
spi_iface.hpp
spi_regs_iface.hpp
DESTINATION ${INCLUDE_DIR}/mpm/spi
diff --git a/mpm/include/mpm/types/CMakeLists.txt b/mpm/include/mpm/types/CMakeLists.txt
index ce22c7a52..42d65ee66 100644
--- a/mpm/include/mpm/types/CMakeLists.txt
+++ b/mpm/include/mpm/types/CMakeLists.txt
@@ -4,7 +4,7 @@
# SPDX-License-Identifier: GPL-3.0
#
-INSTALL(FILES
+install(FILES
regs_iface.hpp
DESTINATION ${INCLUDE_DIR}/mpm/types
)