diff options
author | Tom Rondeau | 2011-11-12 18:30:13 -0500 |
---|---|---|
committer | Tom Rondeau | 2011-11-12 18:30:13 -0500 |
commit | 0e7c799e4ef7a392a8ffe47170666908bfcb183f (patch) | |
tree | deb32d3810b4cb636ecfa24ff613a1aad1fd409c /volk/CMakeLists.txt | |
parent | c9c20b9051b997ab53a27869094648f15e0dccae (diff) | |
parent | 9a25332b706b1ffadf8cdf9b405e89c37a1e2278 (diff) | |
download | gnuradio-0e7c799e4ef7a392a8ffe47170666908bfcb183f.tar.gz gnuradio-0e7c799e4ef7a392a8ffe47170666908bfcb183f.tar.bz2 gnuradio-0e7c799e4ef7a392a8ffe47170666908bfcb183f.zip |
Merge branch 'master' of gnuradio.org:gnuradio
Diffstat (limited to 'volk/CMakeLists.txt')
-rw-r--r-- | volk/CMakeLists.txt | 26 |
1 files changed, 22 insertions, 4 deletions
diff --git a/volk/CMakeLists.txt b/volk/CMakeLists.txt index 4b8fda059..fdde308ad 100644 --- a/volk/CMakeLists.txt +++ b/volk/CMakeLists.txt @@ -32,14 +32,32 @@ set(LIBVER 0.0.0) set(CMAKE_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}) #allows this to be a sub-project set(CMAKE_BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR}) #allows this to be a sub-project +set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake) #location for custom "Modules" + +######################################################################## +# Environment setup +######################################################################## +IF(NOT DEFINED BOOST_ROOT) + SET(BOOST_ROOT "") +ENDIF() +SET(BOOST_ROOT ${BOOST_ROOT} CACHE STRING "Modify search path for Boost components") + +#after caching user-defined value, make sure to add the install prefix +SET(BOOST_ROOT ${BOOST_ROOT}:${CMAKE_INSTALL_PREFIX}) + +IF(NOT DEFINED CROSSCOMPILE_MULTILIB) + SET(CROSSCOMPILE_MULTILIB "") +ENDIF() +SET(CROSSCOMPILE_MULTILIB ${CROSSCOMPILE_MULTILIB} CACHE STRING "Define \"true\" if you have and want to use multiple C development libs installed for cross compile") + ######################################################################## # Dependencies setup ######################################################################## -find_package(PythonInterp) -if(NOT PYTHONINTERP_FOUND) - message(FATAL_ERROR "Python interpreter required by the build system.") -endif(NOT PYTHONINTERP_FOUND) +find_package(PythonInterp REQUIRED PYTHON_EXECUTABLE) +find_package(Boost COMPONENTS unit_test_framework) +find_package(ORC) + ######################################################################## # Setup the package config file |