summaryrefslogtreecommitdiffstats
path: root/host/examples
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2012-01-13 11:27:42 -0800
committerJosh Blum <josh@joshknows.com>2012-01-13 11:27:42 -0800
commit1424488061000ddc471c976c2406ff274d14ae99 (patch)
tree0d4b30268effff8ab30295e0d78beb15490c8c4d /host/examples
parent02eaed1b08be2160232d5fc12e3d5926f6c03a9f (diff)
downloaduhd-1424488061000ddc471c976c2406ff274d14ae99.tar.gz
uhd-1424488061000ddc471c976c2406ff274d14ae99.tar.bz2
uhd-1424488061000ddc471c976c2406ff274d14ae99.zip
uhd: patch to support PKG_LIB_DIR per debian fs standards
uhd binaries will continue to install into share/uhd, however, one can specify -DPKG_LIB_DIR=lib/uhd for example to move where the binaries are installed
Diffstat (limited to 'host/examples')
-rw-r--r--host/examples/CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/host/examples/CMakeLists.txt b/host/examples/CMakeLists.txt
index 4f3650e63..3c9a3880a 100644
--- a/host/examples/CMakeLists.txt
+++ b/host/examples/CMakeLists.txt
@@ -39,7 +39,7 @@ FOREACH(example_source ${example_sources})
GET_FILENAME_COMPONENT(example_name ${example_source} NAME_WE)
ADD_EXECUTABLE(${example_name} ${example_source})
TARGET_LINK_LIBRARIES(${example_name} uhd)
- INSTALL(TARGETS ${example_name} RUNTIME DESTINATION ${PKG_DATA_DIR}/examples COMPONENT examples)
+ INSTALL(TARGETS ${example_name} RUNTIME DESTINATION ${PKG_LIB_DIR}/examples COMPONENT examples)
ENDFOREACH(example_source)
########################################################################
@@ -51,5 +51,5 @@ IF(CURSES_FOUND)
INCLUDE_DIRECTORIES(${CURSES_INCLUDE_DIR})
ADD_EXECUTABLE(rx_ascii_art_dft rx_ascii_art_dft.cpp)
TARGET_LINK_LIBRARIES(rx_ascii_art_dft uhd ${CURSES_LIBRARIES})
- INSTALL(TARGETS rx_ascii_art_dft RUNTIME DESTINATION ${PKG_DATA_DIR}/examples COMPONENT examples)
+ INSTALL(TARGETS rx_ascii_art_dft RUNTIME DESTINATION ${PKG_LIB_DIR}/examples COMPONENT examples)
ENDIF(CURSES_FOUND)