Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: HelloWorld_CCA01M1 HelloWorld_CCA02M1 CI-data-logger-server HelloWorld_CCA02M1 ... more
This is a fork of the events subdirectory of https://github.com/ARMmbed/mbed-os.
Note, you must import this library with import name: events!!!
Diff: test/CMakeLists.txt
- Revision:
- 201:dd058cec5f28
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test/CMakeLists.txt Mon Oct 03 14:40:33 2016 +0300
@@ -0,0 +1,22 @@
+# only build tests on targets that declare they are like posix
+if(DEFINED TARGET_LIKE_X86_WINDOWS_NATIVE OR DEFINED TARGET_LIKE_X86_LINUX_NATIVE)
+
+ # describe the test executable
+ add_executable(mbed_trace_test EXCLUDE_FROM_ALL Test.cpp stubs/ip6tos_stub.c)
+
+ include_directories("../yotta_modules/cpputest" "./stubs")
+
+ # describe what the test executable needs to link with
+ target_link_libraries(mbed_trace_test "mbed-trace" cpputest)
+
+ # describe what is actual test binary
+ if(DEFINED TARGET_LIKE_X86_WINDOWS_NATIVE)
+ add_test(mbed_trace_test "build/x86-windows-native/test/mbed_trace_test")
+ add_dependencies(all_tests mbed_trace_test)
+ endif()
+ if(DEFINED TARGET_LIKE_X86_LINUX_NATIVE)
+ SET(TEST_EXECUTABLE "../../../build/x86-linux-native/test/mbed_trace_test")
+ add_test(mbed_trace_test ${TEST_EXECUTABLE})
+ add_dependencies(all_tests mbed_trace_test)
+ endif()
+endif()