diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2015-07-11 14:30:14 +0200 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2015-07-11 14:30:14 +0200 |
commit | 650fb016ce36cfda2e8073764196655ee6a50567 (patch) | |
tree | 3889f4d25f5ee58286dd8a31e1bd7985845179ff /sensor/test/CMakeLists.txt | |
parent | 178a32835f3405399979b8635b88ce71c57f6cd6 (diff) | |
download | ble-toys-650fb016ce36cfda2e8073764196655ee6a50567.tar.gz ble-toys-650fb016ce36cfda2e8073764196655ee6a50567.tar.bz2 ble-toys-650fb016ce36cfda2e8073764196655ee6a50567.tar.xz ble-toys-650fb016ce36cfda2e8073764196655ee6a50567.zip |
o Adding a parser::finish() method that indicates that the stream is done and any possibly buffered data should be parsed and processed.
Diffstat (limited to 'sensor/test/CMakeLists.txt')
-rw-r--r-- | sensor/test/CMakeLists.txt | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sensor/test/CMakeLists.txt b/sensor/test/CMakeLists.txt index 2e68532..5c2d527 100644 --- a/sensor/test/CMakeLists.txt +++ b/sensor/test/CMakeLists.txt @@ -4,6 +4,8 @@ find_package(Boost COMPONENTS log regex unit_test_framework REQUIRED) file(GLOB TEST_SRCS RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *Test.cpp) add_definitions(-DBOOST_TEST_DYN_LINK) +enable_testing() + foreach(testSrc ${TEST_SRCS}) get_filename_component(testName ${testSrc} NAME_WE) @@ -21,6 +23,6 @@ foreach(testSrc ${TEST_SRCS}) #Finally add it to test execution - #Notice the WORKING_DIRECTORY and COMMAND add_test(NAME ${testName} - WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/testBin - COMMAND ${CMAKE_BINARY_DIR}/testBin/${testName}) + COMMAND ${testName}) + endforeach(testSrc) |