diff options
author | Josh Blum | 2012-11-01 00:07:03 -0700 |
---|---|---|
committer | Josh Blum | 2012-11-01 00:07:03 -0700 |
commit | af7a69de61ee641d9faaf5215eb68e0980ff1ead (patch) | |
tree | 860c3105de2f836c1a47e58555f61683e53d44d8 /CMakeLists.txt | |
parent | 485aeea56f4289555d4b94b2c779015de185a5f0 (diff) | |
download | sandhi-af7a69de61ee641d9faaf5215eb68e0980ff1ead.tar.gz sandhi-af7a69de61ee641d9faaf5215eb68e0980ff1ead.tar.bz2 sandhi-af7a69de61ee641d9faaf5215eb68e0980ff1ead.zip |
added gnuradio as git submodule
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 44 |
1 files changed, 39 insertions, 5 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 1420595..0671223 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -15,8 +15,6 @@ if(CMAKE_BUILD_TYPE STREQUAL "Debug") add_definitions(-DGRAS_DEBUG) endif() -set(LIBVER 0.0.0) - if(CMAKE_COMPILER_IS_GNUCXX) add_definitions(-Wall) add_definitions(-fvisibility=hidden) @@ -29,13 +27,13 @@ add_definitions(-DGRAS_DLL=1) #this project builds a dll # Component names for install rules ######################################################################## if (NOT DEFINED GRAS_COMP_DEVEL) - set(GRAS_COMP_DEVEL "devel") + set(GRAS_COMP_DEVEL "gras_devel") endif() if (NOT DEFINED GRAS_COMP_RUNTIME) - set(GRAS_COMP_RUNTIME "runtime") + set(GRAS_COMP_RUNTIME "gras_runtime") endif() if (NOT DEFINED GRAS_COMP_PYTHON) - set(GRAS_COMP_PYTHON "python") + set(GRAS_COMP_PYTHON "gras_python") endif() set(PMC_COMP_DEVEL ${GRAS_COMP_DEVEL}) @@ -56,3 +54,39 @@ add_subdirectory(lib) add_subdirectory(PMC) add_subdirectory(python/gras) add_subdirectory(tests) + +######################################################################## +# add gnuradio as sub-project +######################################################################## +set(CMAKE_SOURCE_DIR ${GRAS_SOURCE_DIR}/gnuradio) +set(CMAKE_BINARY_DIR ${GRAS_BINARY_DIR}/gnuradio) + +add_subdirectory(gnuradio) + +######################################################################## +# add GRAS to gnuradio cpack registry +# this must come after the submodule +######################################################################## +list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/Modules) +include(GrPackage) + +CPACK_SET(CPACK_COMPONENT_GROUP_GRAS_DESCRIPTION "GNU Radio Advanced Scheduler") + +CPACK_COMPONENT("${GRAS_COMP_RUNTIME}" + GROUP "GRAS" + DISPLAY_NAME "Runtime" + DESCRIPTION "Runtime" +) + +CPACK_COMPONENT("${GRAS_COMP_DEVEL}" + GROUP "GRAS" + DISPLAY_NAME "Development" + DESCRIPTION "C++ headers and import libraries" +) + +CPACK_COMPONENT("${GRAS_COMP_PYTHON}" + GROUP "GRAS" + DISPLAY_NAME "Python" + DESCRIPTION "Python modules for runtime" + DEPENDS "${GRAS_COMP_RUNTIME}" +) |