summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJosh Blum2012-09-18 16:03:55 -0700
committerJosh Blum2012-09-18 16:03:55 -0700
commit541b5adccdc915b5deb200c240aaf77847dea027 (patch)
treed4c8a81055760037a76a703b7baa2e83750ef4e1 /lib
parent4d6d5b216f86e976322fb4fed800c756fdef4315 (diff)
downloadsandhi-541b5adccdc915b5deb200c240aaf77847dea027.tar.gz
sandhi-541b5adccdc915b5deb200c240aaf77847dea027.tar.bz2
sandhi-541b5adccdc915b5deb200c240aaf77847dea027.zip
bring in theron and tsbe as submodules
Diffstat (limited to 'lib')
-rw-r--r--lib/CMakeLists.txt63
1 files changed, 35 insertions, 28 deletions
diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt
index 1cea8c8..fd24ccd 100644
--- a/lib/CMakeLists.txt
+++ b/lib/CMakeLists.txt
@@ -9,6 +9,39 @@ set(GRAS_BINARY_DIR ${CMAKE_BINARY_DIR}/gruel/src)
set(RUNTIME_SOURCE_DIR ${CMAKE_SOURCE_DIR}/gnuradio-core/src/lib/runtime)
########################################################################
+# Setup TSBE
+########################################################################
+include_directories(${GRAS_SOURCE_DIR}/tsbe/include)
+include_directories(${GRAS_SOURCE_DIR}/tsbe/lib)
+
+file(GLOB tsbe_sources
+ "${GRAS_SOURCE_DIR}/tsbe/lib/*.cpp"
+)
+
+list(APPEND gnuradio_core_sources ${tsbe_sources})
+
+########################################################################
+# Setup Theron
+########################################################################
+include_directories(${GRAS_SOURCE_DIR}/Theron/Include)
+include_directories(${GRAS_SOURCE_DIR}/Theron/Include/External)
+
+if(MSVC)
+ include_directories(${GRAS_SOURCE_DIR}/Theron/Include/External/Standard)
+endif(MSVC)
+
+if (NOT WIN32) #not on windows? tell theron headers to use boost
+ add_definitions(-DTHERON_USE_BOOST_THREADS)
+endif()
+
+file(GLOB theron_sources
+ "${GRAS_SOURCE_DIR}/Theron/Theron/*.cpp"
+ "${GRAS_SOURCE_DIR}/Theron/Source/*.cpp"
+)
+
+list(APPEND gnuradio_core_sources ${theron_sources})
+
+########################################################################
# Setup NumaNuma
########################################################################
list(APPEND CMAKE_MODULE_PATH ${GRAS_SOURCE_DIR}/numanuma/cmake)
@@ -18,6 +51,8 @@ if(NOT NUMANUMA_FOUND)
message(FATAL_ERROR "numanuma dependencies not met!")
endif()
+list(APPEND gnuradio_core_libs ${NUMANUMA_LIBRARIES})
+
########################################################################
# Append gnuradio-core library sources
########################################################################
@@ -82,34 +117,6 @@ foreach(header ${test_headers})
execute_process(COMMAND ${CMAKE_COMMAND} -E copy ${header} ${GRAS_BINARY_DIR}/include)
endforeach(header)
-
-########################################################################
-# Find TSBE and add to libs
-########################################################################
-FIND_PATH(
- TSBE_INCLUDE_DIRS
- NAMES tsbe/config.hpp
- PATHS /usr/local/include
- /usr/include
-)
-
-FIND_LIBRARY(
- TSBE_LIBRARIES
- NAMES tsbe
- PATHS /usr/local/lib
- /usr/lib
- /usr/lib64
-)
-
-include_directories(${TSBE_INCLUDE_DIRS})
-link_directories(${TSBE_LIBRARY_DIRS})
-
-list(APPEND gnuradio_core_libs
- ${TSBE_LIBRARIES}
-)
-
-list(APPEND gnuradio_core_libs ${NUMANUMA_LIBRARIES})
-
########################################################################
# Install runtime headers
########################################################################