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