Statistics
| Branch: | Tag: | Revision:

root / host / utils / CMakeLists.txt @ 7b066a45

History | View | Annotate | Download (2.02 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
INSTALL(TARGETS
28
    uhd_find_devices
29
    uhd_usrp_probe
30
    RUNTIME DESTINATION ${RUNTIME_DIR}
31
)
32

    
33
########################################################################
34
# Utilities that get installed into the share path
35
########################################################################
36
ADD_EXECUTABLE(usrp2_addr_burner usrp2_addr_burner.cpp)
37
TARGET_LINK_LIBRARIES(usrp2_addr_burner uhd)
38

    
39
ADD_EXECUTABLE(usrp_burn_db_eeprom usrp_burn_db_eeprom.cpp)
40
TARGET_LINK_LIBRARIES(usrp_burn_db_eeprom uhd)
41

    
42
ADD_EXECUTABLE(usrp_init_eeprom usrp_init_eeprom.cpp)
43
TARGET_LINK_LIBRARIES(usrp_init_eeprom uhd)
44

    
45
ADD_EXECUTABLE(usrp_serial_burner usrp_serial_burner.cpp)
46
TARGET_LINK_LIBRARIES(usrp_serial_burner uhd)
47

    
48
INSTALL(TARGETS
49
    usrp2_addr_burner
50
    usrp_burn_db_eeprom
51
    usrp_init_eeprom
52
    usrp_serial_burner
53
    RUNTIME DESTINATION ${PKG_DATA_DIR}/utils
54
)
55

    
56
INSTALL(PROGRAMS
57
    usrp2_recovery.py
58
    usrp2_card_burner.py
59
    usrp2_card_burner_gui.py
60
    DESTINATION ${PKG_DATA_DIR}/utils
61
)