diff options
author | Martin Braun <martin.braun@ettus.com> | 2015-04-27 15:42:39 -0700 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2015-04-27 15:42:39 -0700 |
commit | 1cf3ac765cdfb80cebd375d527eae0a00fce83c6 (patch) | |
tree | 4c424f325c0e21171065a09ddf26e5052e83d719 /host/CMakeLists.txt | |
parent | 47ddba6fcc0c14ddac961dfe73ce5c3aa15dbba4 (diff) | |
parent | 925bd26d3a66de434f32ac69599564dc2f5bc69d (diff) | |
download | uhd-1cf3ac765cdfb80cebd375d527eae0a00fce83c6.tar.gz uhd-1cf3ac765cdfb80cebd375d527eae0a00fce83c6.tar.bz2 uhd-1cf3ac765cdfb80cebd375d527eae0a00fce83c6.zip |
Merge branch 'maint'
Diffstat (limited to 'host/CMakeLists.txt')
-rw-r--r-- | host/CMakeLists.txt | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/host/CMakeLists.txt b/host/CMakeLists.txt index 1fa8b2cdb..5ae2a3273 100644 --- a/host/CMakeLists.txt +++ b/host/CMakeLists.txt @@ -297,6 +297,19 @@ LIBUHD_REGISTER_COMPONENT("Utils" ENABLE_UTILS ON "ENABLE_LIBUHD" OFF) LIBUHD_REGISTER_COMPONENT("Tests" ENABLE_TESTS ON "ENABLE_LIBUHD" OFF) ######################################################################## +# Check for fpga-src submodule +######################################################################## +SET(HAS_FPGA_SUBMODULE FALSE) +EXECUTE_PROCESS( + COMMAND ${PYTHON_EXECUTABLE} -c "import os; print os.path.abspath(os.path.join('${CMAKE_SOURCE_DIR}', '..', 'fpga-src'))" + OUTPUT_VARIABLE FPGA_SUBMODULE_DIR OUTPUT_STRIP_TRAILING_WHITESPACE +) +message(STATUS ${FPGA_SUBMODULE_DIR}) +IF(EXISTS "${FPGA_SUBMODULE_DIR}/docs/fpga.md") + SET(HAS_FPGA_SUBMODULE TRUE) +ENDIF(EXISTS "${FPGA_SUBMODULE_DIR}/docs/fpga.md") + +######################################################################## # Add the subdirectories ######################################################################## ADD_SUBDIRECTORY(docs) |