aboutsummaryrefslogtreecommitdiffstats
path: root/host/examples
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2015-01-13 09:45:55 +0100
committerMartin Braun <martin.braun@ettus.com>2015-01-13 09:45:55 +0100
commitbe5f9613311d944b8971570bff444c5af094f0f5 (patch)
tree6e97e48801fe10a61244c2f4e36ef7f28a6e3c57 /host/examples
parentd15fe9bc22efe4d0499a9108659e32c93e0a2848 (diff)
parent23729861a2020359b9c920347bd2d7c43d96ebf8 (diff)
downloaduhd-be5f9613311d944b8971570bff444c5af094f0f5.tar.gz
uhd-be5f9613311d944b8971570bff444c5af094f0f5.tar.bz2
uhd-be5f9613311d944b8971570bff444c5af094f0f5.zip
Merge branch 'maint'
Diffstat (limited to 'host/examples')
-rw-r--r--host/examples/init_usrp/CMakeLists.txt9
1 files changed, 9 insertions, 0 deletions
diff --git a/host/examples/init_usrp/CMakeLists.txt b/host/examples/init_usrp/CMakeLists.txt
index afbf73027..420e79993 100644
--- a/host/examples/init_usrp/CMakeLists.txt
+++ b/host/examples/init_usrp/CMakeLists.txt
@@ -24,6 +24,14 @@ set(BOOST_REQUIRED_COMPONENTS
system
thread
)
+if(MSVC)
+ set(BOOST_ALL_DYN_LINK "${BOOST_ALL_DYN_LINK}" CACHE BOOL "boost enable dynamic linking")
+ if(BOOST_ALL_DYN_LINK)
+ add_definitions(-DBOOST_ALL_DYN_LINK) #setup boost auto-linking in msvc
+ else(BOOST_ALL_DYN_LINK)
+ set(BOOST_REQUIRED_COMPONENTS) #empty components list for static link
+ endif(BOOST_ALL_DYN_LINK)
+endif(MSVC)
find_package(Boost "1.46" REQUIRED ${BOOST_REQUIRED_COMPONENTS})
# To add UHD as a dependency to this project, add a line such as this:
@@ -37,6 +45,7 @@ include_directories(
${Boost_INCLUDE_DIRS}
${UHD_INCLUDE_DIRS}
)
+link_directories(${Boost_LIBRARY_DIRS})
### Make the executable #######################################################
add_executable(init_usrp init_usrp.cpp)