summaryrefslogtreecommitdiff
path: root/cmake/Modules/GRASTool.in.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/Modules/GRASTool.in.cmake')
-rw-r--r--cmake/Modules/GRASTool.in.cmake10
1 files changed, 7 insertions, 3 deletions
diff --git a/cmake/Modules/GRASTool.in.cmake b/cmake/Modules/GRASTool.in.cmake
index 9295839..23e3713 100644
--- a/cmake/Modules/GRASTool.in.cmake
+++ b/cmake/Modules/GRASTool.in.cmake
@@ -68,6 +68,7 @@ endif()
## COMPONENT - name of installation component or ${TARGET}
##
## External vars:
+## GRAS_TOOL_INCLUDES - list of additional include directories
## GRAS_TOOL_LIBRARIES - list of additional libraries to link to
########################################################################
function(GRAS_TOOL)
@@ -119,15 +120,18 @@ function(GRAS_TOOL)
set(GRAS_TOOL_GRC_DIR share/gnuradio/grc/blocks/${GRAS_TOOL_DIRECTORY})
#development and framework directories
- include_directories(${CMAKE_CURRENT_SOURCE_DIR})
- include_directories(${PMC_INCLUDE_DIRS})
- include_directories(${GRAS_INCLUDE_DIRS})
+ list(APPEND GRAS_TOOL_INCLUDES ${CMAKE_CURRENT_SOURCE_DIR})
+ list(APPEND GRAS_TOOL_INCLUDES ${PMC_INCLUDE_DIRS})
+ list(APPEND GRAS_TOOL_INCLUDES ${GRAS_INCLUDE_DIRS})
list(APPEND GRAS_TOOL_LIBRARIES ${PMC_LIBRARIES})
list(APPEND GRAS_TOOL_LIBRARIES ${GRAS_LIBRARIES})
#and boost includes as well
include_directories(${Boost_INCLUDE_DIRS})
+ #required directories for compiling
+ include_directories(${GRAS_TOOL_INCLUDES})
+
#build and install module to path
if (GRAS_TOOL_CPP_SOURCES)
add_library(${GRAS_TOOL_TARGET} MODULE ${GRAS_TOOL_CPP_SOURCES})