summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormhostetter <mhostetter@users.noreply.github.com>2016-04-09 15:00:24 -0400
committermhostetter <mhostetter@users.noreply.github.com>2016-04-09 15:00:24 -0400
commit466877ff7eeb651b94927a6726374a613de5a66d (patch)
tree0d633ea591ed51d2c5c86cf936bd462f85af118a
parentd619706da5dbbd2e2e1c8a458be003d5767b271f (diff)
Added CMake code to find a PyBOMBS installation target and install the OOT module there.
-rw-r--r--gr-utils/python/modtool/gr-newmod/CMakeLists.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/gr-utils/python/modtool/gr-newmod/CMakeLists.txt b/gr-utils/python/modtool/gr-newmod/CMakeLists.txt
index 9b41b99f14..6f32f21833 100644
--- a/gr-utils/python/modtool/gr-newmod/CMakeLists.txt
+++ b/gr-utils/python/modtool/gr-newmod/CMakeLists.txt
@@ -24,6 +24,12 @@ cmake_minimum_required(VERSION 2.6)
project(gr-howto CXX C)
enable_testing()
+#install to PyBOMBS target prefix if defined
+if(DEFINED ENV{PYBOMBS_PREFIX})
+ set(CMAKE_INSTALL_PREFIX $ENV{PYBOMBS_PREFIX})
+ message(STATUS "PyBOMBS installed GNU Radio. Setting CMAKE_INSTALL_PREFIX to $ENV{PYBOMBS_PREFIX}")
+endif()
+
#select the release build type by default to get optimization flags
if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE "Release")