aboutsummaryrefslogtreecommitdiffstats
path: root/host/tests
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2012-10-29 14:58:05 -0700
committerJosh Blum <josh@joshknows.com>2012-10-29 17:41:37 -0700
commitaef1ab5376bb6b5fc0fc9d9b4e4e474668181086 (patch)
tree490caf910d371dd99e61ee92a97ecdd69283de0d /host/tests
parentba37bfc29bedef639179166470a6d3cd1cb6ef96 (diff)
downloaduhd-aef1ab5376bb6b5fc0fc9d9b4e4e474668181086.tar.gz
uhd-aef1ab5376bb6b5fc0fc9d9b4e4e474668181086.tar.bz2
uhd-aef1ab5376bb6b5fc0fc9d9b4e4e474668181086.zip
uhd: unit tests generate script w/ env paths
Diffstat (limited to 'host/tests')
-rw-r--r--host/tests/CMakeLists.txt10
1 files changed, 9 insertions, 1 deletions
diff --git a/host/tests/CMakeLists.txt b/host/tests/CMakeLists.txt
index d93b0cc2e..f5cead184 100644
--- a/host/tests/CMakeLists.txt
+++ b/host/tests/CMakeLists.txt
@@ -16,6 +16,11 @@
#
########################################################################
+# unit test support
+########################################################################
+include(UHDUnitTest)
+
+########################################################################
# unit test suite
########################################################################
SET(test_sources
@@ -39,12 +44,15 @@ SET(test_sources
#turn each test cpp file into an executable with an int main() function
ADD_DEFINITIONS(-DBOOST_TEST_DYN_LINK -DBOOST_TEST_MAIN)
+SET(UHD_TEST_TARGET_DEPS uhd)
+SET(UHD_TEST_LIBRARY_DIRS ${Boost_LIBRARY_DIRS})
+
#for each source: build an executable, register it as a test
FOREACH(test_source ${test_sources})
GET_FILENAME_COMPONENT(test_name ${test_source} NAME_WE)
ADD_EXECUTABLE(${test_name} ${test_source})
TARGET_LINK_LIBRARIES(${test_name} uhd)
- ADD_TEST(${test_name} ${test_name})
+ UHD_ADD_TEST(${test_name} ${test_name})
ENDFOREACH(test_source)
########################################################################