enables smp demo
This commit is contained in:
@@ -26,7 +26,6 @@ target_link_libraries(threadx_smp PUBLIC c moonlight)
|
|||||||
set(NETXDUO_CUSTOM_PORT ${CMAKE_CURRENT_LIST_DIR}/port/netxduo)
|
set(NETXDUO_CUSTOM_PORT ${CMAKE_CURRENT_LIST_DIR}/port/netxduo)
|
||||||
set(NXD_ENABLE_FILE_SERVERS OFF)
|
set(NXD_ENABLE_FILE_SERVERS OFF)
|
||||||
add_subdirectory(third-party/netxduo)
|
add_subdirectory(third-party/netxduo)
|
||||||
target_link_libraries(netxduo PUBLIC threadx)
|
|
||||||
if(NX_DEBUG)
|
if(NX_DEBUG)
|
||||||
target_compile_definitions(netxduo PRIVATE NX_DEBUG NX_DEBUG_PACKET NX_ENABLE_PACKET_DEBUG_INFO)
|
target_compile_definitions(netxduo PRIVATE NX_DEBUG NX_DEBUG_PACKET NX_ENABLE_PACKET_DEBUG_INFO)
|
||||||
endif()
|
endif()
|
||||||
@@ -74,5 +73,5 @@ function(setup_target TARGET)
|
|||||||
endfunction()
|
endfunction()
|
||||||
|
|
||||||
setup_target(thread_demo LIBRARIES threadx SOURCES src/thread_demo/main.c)
|
setup_target(thread_demo LIBRARIES threadx SOURCES src/thread_demo/main.c)
|
||||||
setup_target(tcp_demo LIBRARIES netxduo SOURCES src/tcp_demo/main.c)
|
setup_target(tcp_demo LIBRARIES netxduo threadx SOURCES src/tcp_demo/main.c)
|
||||||
#setup_target(smp_demo LIBRARIES threadx_smp SOURCES src/thread_demo/main.c)
|
setup_target(smp_demo LIBRARIES threadx_smp SOURCES src/thread_demo/main.c)
|
||||||
|
|||||||
Reference in New Issue
Block a user