root / gr-atsc / CMakeLists.txt @ 0408e48c
History | View | Annotate | Download (3.3 kB)
| 1 | # Copyright 2011 Free Software Foundation, Inc. |
|---|---|
| 2 | # |
| 3 | # This file is part of GNU Radio |
| 4 | # |
| 5 | # GNU Radio is free software; you can redistribute it and/or modify |
| 6 | # it under the terms of the GNU General Public License as published by |
| 7 | # the Free Software Foundation; either version 3, or (at your option) |
| 8 | # any later version. |
| 9 | # |
| 10 | # GNU Radio is distributed in the hope that it will be useful, |
| 11 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | # GNU General Public License for more details. |
| 14 | # |
| 15 | # You should have received a copy of the GNU General Public License |
| 16 | # along with GNU Radio; see the file COPYING. If not, write to |
| 17 | # the Free Software Foundation, Inc., 51 Franklin Street, |
| 18 | # Boston, MA 02110-1301, USA. |
| 19 | |
| 20 | ######################################################################## |
| 21 | # Setup dependencies |
| 22 | ######################################################################## |
| 23 | include(GrBoost) |
| 24 | |
| 25 | ######################################################################## |
| 26 | # Register component |
| 27 | ######################################################################## |
| 28 | include(GrComponent) |
| 29 | GR_REGISTER_COMPONENT("gr-atsc" ENABLE_GR_ATSC
|
| 30 | Boost_FOUND |
| 31 | ENABLE_GR_CORE |
| 32 | ) |
| 33 | |
| 34 | GR_SET_GLOBAL(GR_ATSC_INCLUDE_DIRS |
| 35 | ${CMAKE_CURRENT_SOURCE_DIR}/src/lib
|
| 36 | ) |
| 37 | |
| 38 | ######################################################################## |
| 39 | # Begin conditional configuration |
| 40 | ######################################################################## |
| 41 | if(ENABLE_GR_ATSC) |
| 42 | |
| 43 | ######################################################################## |
| 44 | # Setup CPack components |
| 45 | ######################################################################## |
| 46 | include(GrPackage) |
| 47 | CPACK_SET(CPACK_COMPONENT_GROUP_ATSC_DESCRIPTION "GNU Radio ATSC Blocks") |
| 48 | |
| 49 | CPACK_COMPONENT("atsc_runtime"
|
| 50 | GROUP "ATSC" |
| 51 | DISPLAY_NAME "Runtime" |
| 52 | DESCRIPTION "Runtime" |
| 53 | DEPENDS "core_runtime" |
| 54 | ) |
| 55 | |
| 56 | CPACK_COMPONENT("atsc_devel"
|
| 57 | GROUP "ATSC" |
| 58 | DISPLAY_NAME "Development" |
| 59 | DESCRIPTION "C++ headers, package config, import libraries" |
| 60 | DEPENDS "core_devel" |
| 61 | ) |
| 62 | |
| 63 | CPACK_COMPONENT("atsc_python"
|
| 64 | GROUP "ATSC" |
| 65 | DISPLAY_NAME "Python" |
| 66 | DESCRIPTION "Python modules for runtime; GRC xml files" |
| 67 | DEPENDS "core_python;atsc_runtime" |
| 68 | ) |
| 69 | |
| 70 | CPACK_COMPONENT("atsc_examples"
|
| 71 | GROUP "ATSC" |
| 72 | DISPLAY_NAME "Examples" |
| 73 | DESCRIPTION "Python examples for ATSC" |
| 74 | DEPENDS "atsc_python" |
| 75 | ) |
| 76 | |
| 77 | CPACK_COMPONENT("atsc_swig"
|
| 78 | GROUP "ATSC" |
| 79 | DISPLAY_NAME "SWIG" |
| 80 | DESCRIPTION "SWIG development .i files" |
| 81 | DEPENDS "core_swig;atsc_python;atsc_devel" |
| 82 | ) |
| 83 | |
| 84 | ######################################################################## |
| 85 | # Add subdirectories |
| 86 | ######################################################################## |
| 87 | add_subdirectory(src/lib) |
| 88 | if(ENABLE_PYTHON) |
| 89 | add_subdirectory(src/python) |
| 90 | endif(ENABLE_PYTHON) |
| 91 | |
| 92 | ######################################################################## |
| 93 | # Create Pkg Config File |
| 94 | ######################################################################## |
| 95 | configure_file( |
| 96 | ${CMAKE_CURRENT_SOURCE_DIR}/gnuradio-atsc.pc.in
|
| 97 | ${CMAKE_CURRENT_BINARY_DIR}/gnuradio-atsc.pc
|
| 98 | @ONLY) |
| 99 | |
| 100 | install( |
| 101 | FILES ${CMAKE_CURRENT_BINARY_DIR}/gnuradio-atsc.pc
|
| 102 | DESTINATION ${GR_LIBRARY_DIR}/pkgconfig
|
| 103 | COMPONENT "atsc_devel" |
| 104 | ) |
| 105 | |
| 106 | endif(ENABLE_GR_ATSC) |