adds initial testing setup
This commit is contained in:
@@ -33,6 +33,7 @@ endif()
|
||||
###############################################################################
|
||||
project(threadx_demo C ASM)
|
||||
option(NX_DEBUG "compile netxduo debug output in" OFF)
|
||||
option(ENABLE_THREADX_REGRESSION "Build ThreadX regression test executables" OFF)
|
||||
set(TARGET_MEM "ram" CACHE STRING "memory map to use")
|
||||
set(CMAKE_EXECUTABLE_SUFFIX_C ".elf")
|
||||
|
||||
@@ -88,6 +89,10 @@ function(setup_target TARGET)
|
||||
)
|
||||
endfunction()
|
||||
|
||||
if(ENABLE_THREADX_REGRESSION)
|
||||
add_subdirectory(test)
|
||||
endif()
|
||||
|
||||
setup_target(thread_demo LIBRARIES threadx SOURCES src/thread_demo/main.c)
|
||||
setup_target(tcp_demo LIBRARIES threadx netxduo SOURCES src/tcp_demo/main.c)
|
||||
setup_target(smp_demo LIBRARIES threadx_smp SOURCES src/thread_demo/main.c)
|
||||
|
||||
Reference in New Issue
Block a user