blob: 90d4078a935d9a9e41e8572cdf58f701b7315b1f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
# Build the sample_threadx program that ports/linux/gnu/Makefile builds, so the
# CMake build can produce a runnable demo rather than only the library.
#
# Guarded by THREADX_SAMPLE in the parent so the default build stays a pure
# library build.
add_executable(sample_threadx)
target_sources(sample_threadx PRIVATE ${CMAKE_CURRENT_LIST_DIR}/sample_threadx.c)
target_include_directories(sample_threadx
PRIVATE
${CMAKE_CURRENT_LIST_DIR}/../inc
${CMAKE_CURRENT_LIST_DIR}/../../../../${TX_COMMON_DIR}/inc
)
target_link_libraries(sample_threadx PRIVATE threadx)
|