Skip to content

Commit

Permalink
Update cmake file for code build example
Browse files Browse the repository at this point in the history
  • Loading branch information
Ubuntu committed Apr 11, 2024
1 parent c7cac50 commit a2e99d4
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,13 @@ if(${BUILD_CODE_EXAMPLE})

# Target for code example binary.
add_executable( code_example_posix
${MODULE_ROOT_DIR}/docs/doxygen/code_examples/backoff_algorithm_posix.c )

target_link_libraries( code_example_posix coverity_analysis )
${MODULE_ROOT_DIR}/docs/doxygen/code_examples/backoff_algorithm_posix.c
${BACKOFF_ALGORITHM_SOURCES} )

# Backoff Algorithm library public include path.
target_include_directories( code_example_posix
PUBLIC
${BACKOFF_ALGORITHM_INCLUDE_PUBLIC_DIRS} )
endif()

# ==================================== Unit Test Configuration ====================================
Expand Down

0 comments on commit a2e99d4

Please sign in to comment.