I followed https://github.com/azure-rtos/threadx and built threadx library. When I followed the build steps of filex, compilation failed at step 5 https://github.com/azure-rtos/filex#:~:text=Building%20as%20a%20static%20library. The error message is
CMake Error at CMakeLists.txt:19 (add_library):
Target "filex" links to target "azrtos::threadx" but the target was not
found. Perhaps a find_package() call is missing for an IMPORTED target, or
an ALIAS target is missing?
I changed CMakeLists.txt and built filex library successffuly. But I do not know the changes is whether proper.
if(NOT FX_STANDALONE_ENABLE)
target_link_libraries(${PROJECT_NAME} PUBLIC
"libthreadx.a"
)
target_include_directories(${PROJECT_NAME} PUBLIC ../threadx/common/inc)
target_include_directories(${PROJECT_NAME} PUBLIC ../threadx/ports/cortex_m4/gnu/inc)
link_directories(${CMAKE_CURRENT_BINARY_DIR}/../threadx/build)
endif()
.
├── filex
└── threadx