Statistics
| Branch: | Tag: | Revision:

root / host / utils / CMakeLists.txt @ cd84e9db

History | View | Annotate | Download (2.11 KB)

1
#
2
# Copyright 2010 Ettus Research LLC
3
#
4
# This program is free software: you can redistribute it and/or modify
5
# it under the terms of the GNU General Public License as published by
6
# the Free Software Foundation, either version 3 of the License, or
7
# (at your option) any later version.
8
#
9
# This program is distributed in the hope that it will be useful,
10
# but WITHOUT ANY WARRANTY; without even the implied warranty of
11
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12
# GNU General Public License for more details.
13
#
14
# You should have received a copy of the GNU General Public License
15
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
16
#
17

    
18
########################################################################
19
# Utilities that get installed into the runtime path
20
########################################################################
21
ADD_EXECUTABLE(uhd_find_devices uhd_find_devices.cpp)
22
TARGET_LINK_LIBRARIES(uhd_find_devices uhd)
23

    
24
ADD_EXECUTABLE(uhd_usrp_probe uhd_usrp_probe.cpp)
25
TARGET_LINK_LIBRARIES(uhd_usrp_probe uhd)
26

    
27
ADD_EXECUTABLE(fpga-downloader fpga-downloader.cpp)
28
TARGET_LINK_LIBRARIES(fpga-downloader)
29

    
30
ADD_EXECUTABLE(usrp-e-loopback usrp-e-loopback.c)
31
TARGET_LINK_LIBRARIES(usrp-e-loopback pthread)
32

    
33
ADD_EXECUTABLE(usrp-e-debug-pins usrp-e-debug-pins.c)
34
TARGET_LINK_LIBRARIES(usrp-e-debug-pins)
35

    
36
INSTALL(TARGETS
37
    uhd_find_devices
38
    uhd_usrp_probe
39
    fpga-downloader
40
    usrp-e-loopback
41
    usrp-e-debug-pins
42
    RUNTIME DESTINATION ${RUNTIME_DIR}
43
)
44

    
45
########################################################################
46
# Utilities that get installed into the share path
47
########################################################################
48
ADD_EXECUTABLE(usrp2_addr_burner usrp2_addr_burner.cpp)
49
TARGET_LINK_LIBRARIES(usrp2_addr_burner uhd)
50

    
51
ADD_EXECUTABLE(usrp_burn_db_eeprom usrp_burn_db_eeprom.cpp)
52
TARGET_LINK_LIBRARIES(usrp_burn_db_eeprom uhd)
53

    
54
INSTALL(TARGETS
55
    usrp2_addr_burner
56
    usrp_burn_db_eeprom
57
    RUNTIME DESTINATION ${PKG_DATA_DIR}/utils
58
)
59

    
60
INSTALL(PROGRAMS
61
    usrp2_recovery.py
62
    usrp2_card_burner.py
63
    usrp2_card_burner_gui.py
64
    DESTINATION ${PKG_DATA_DIR}/utils
65
)