diff options
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | CMakeLists.txt | 47 | ||||
-rw-r--r-- | apps/CMakeLists.txt | 20 | ||||
-rw-r--r-- | lib/CMakeLists.txt | 33 | ||||
-rw-r--r-- | lib/transport/CMakeLists.txt | 21 | ||||
-rw-r--r-- | lib/usrp/CMakeLists.txt | 27 | ||||
-rw-r--r-- | lib/usrp/dboard/CMakeLists.txt | 25 | ||||
-rw-r--r-- | lib/usrp/mboard/CMakeLists.txt | 23 | ||||
-rw-r--r-- | test/CMakeLists.txt | 30 |
9 files changed, 227 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore index 5d81aa58a..d68a9d0f8 100644 --- a/.gitignore +++ b/.gitignore @@ -13,6 +13,7 @@ /ltmain.sh /missing /depcomp +*.a *.la *.lo *.o diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 000000000..5f16eccbd --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,47 @@ +# +# Copyright 2010 Ettus Research LLC +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. +# + +CMAKE_MINIMUM_REQUIRED(VERSION 2.6) +PROJECT(UHD) +ENABLE_TESTING() +INCLUDE(CPack) + +######################################################################## +# Local Include Dir +######################################################################## +INCLUDE_DIRECTORIES(${UHD_SOURCE_DIR}/include) + +######################################################################## +# Setup Boost +######################################################################## +FIND_PACKAGE(Boost 1.36 REQUIRED + date_time + program_options + system + thread + unit_test_framework +) + +INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIRS}) +LINK_DIRECTORIES(${Boost_LIBRARY_DIRS}) + +######################################################################## +# Add the subdirectories +######################################################################## +ADD_SUBDIRECTORY(lib) +ADD_SUBDIRECTORY(test) +ADD_SUBDIRECTORY(apps) diff --git a/apps/CMakeLists.txt b/apps/CMakeLists.txt new file mode 100644 index 000000000..b2943f9f3 --- /dev/null +++ b/apps/CMakeLists.txt @@ -0,0 +1,20 @@ +# +# Copyright 2010 Ettus Research LLC +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. +# + +ADD_EXECUTABLE(discover_usrps discover_usrps.cpp) + +TARGET_LINK_LIBRARIES(discover_usrps uhd) diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt new file mode 100644 index 000000000..46e487f7f --- /dev/null +++ b/lib/CMakeLists.txt @@ -0,0 +1,33 @@ +# +# Copyright 2010 Ettus Research LLC +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. +# + + +ADD_SUBDIRECTORY(usrp) +ADD_SUBDIRECTORY(transport) + +ADD_LIBRARY(uhd SHARED + device.cpp + device_addr.cpp + gain_handler.cpp + shared_iovec.cpp + uhd.cpp + wax.cpp +) + +TARGET_LINK_LIBRARIES(uhd uhd_usrp) +TARGET_LINK_LIBRARIES(uhd uhd_transport) +TARGET_LINK_LIBRARIES(uhd ${Boost_LIBRARIES}) diff --git a/lib/transport/CMakeLists.txt b/lib/transport/CMakeLists.txt new file mode 100644 index 000000000..e633fa8f4 --- /dev/null +++ b/lib/transport/CMakeLists.txt @@ -0,0 +1,21 @@ +# +# Copyright 2010 Ettus Research LLC +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. +# + + +ADD_LIBRARY(uhd_transport STATIC + udp.cpp +) diff --git a/lib/usrp/CMakeLists.txt b/lib/usrp/CMakeLists.txt new file mode 100644 index 000000000..2f96fd349 --- /dev/null +++ b/lib/usrp/CMakeLists.txt @@ -0,0 +1,27 @@ +# +# Copyright 2010 Ettus Research LLC +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. +# + + +ADD_SUBDIRECTORY(dboard) +ADD_SUBDIRECTORY(mboard) + +ADD_LIBRARY(uhd_usrp STATIC + usrp.cpp +) + +TARGET_LINK_LIBRARIES(uhd_usrp uhd_usrp_dboard) +TARGET_LINK_LIBRARIES(uhd_usrp uhd_usrp_mboard) diff --git a/lib/usrp/dboard/CMakeLists.txt b/lib/usrp/dboard/CMakeLists.txt new file mode 100644 index 000000000..128def095 --- /dev/null +++ b/lib/usrp/dboard/CMakeLists.txt @@ -0,0 +1,25 @@ +# +# Copyright 2010 Ettus Research LLC +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. +# + + +ADD_LIBRARY(uhd_usrp_dboard STATIC + basic.cpp + base.cpp + id.cpp + interface.cpp + manager.cpp +) diff --git a/lib/usrp/mboard/CMakeLists.txt b/lib/usrp/mboard/CMakeLists.txt new file mode 100644 index 000000000..a6ba1f687 --- /dev/null +++ b/lib/usrp/mboard/CMakeLists.txt @@ -0,0 +1,23 @@ +# +# Copyright 2010 Ettus Research LLC +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. +# + + +ADD_LIBRARY(uhd_usrp_mboard STATIC + base.cpp + test.cpp + usrp2.cpp +) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt new file mode 100644 index 000000000..0dcd1e68e --- /dev/null +++ b/test/CMakeLists.txt @@ -0,0 +1,30 @@ +# +# Copyright 2010 Ettus Research LLC +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. +# + + +ADD_EXECUTABLE(main_test + main_test.cpp + addr_test.cpp + device_test.cpp + gain_handler_test.cpp + usrp_dboard_test.cpp + wax_test.cpp +) + +TARGET_LINK_LIBRARIES(main_test uhd) + +ADD_TEST(test main_test) |