diff options
| author | hathach <[email protected]> | 2022-03-04 22:25:50 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2022-03-04 22:25:50 +0700 |
| commit | b9a6cd8b6163e79d42ba3b56515579f6c1d5f3b2 (patch) | |
| tree | 318f0a8c719b4cfff56183c23d8134ad03f49d6c /examples/host/bare_api/CMakeLists.txt | |
| parent | 271f905521edfdcfc5649bbe6906f3d3c6d4b10f (diff) | |
rename example
Diffstat (limited to 'examples/host/bare_api/CMakeLists.txt')
| -rw-r--r-- | examples/host/bare_api/CMakeLists.txt | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/examples/host/bare_api/CMakeLists.txt b/examples/host/bare_api/CMakeLists.txt new file mode 100644 index 000000000..bff281a8c --- /dev/null +++ b/examples/host/bare_api/CMakeLists.txt @@ -0,0 +1,27 @@ +cmake_minimum_required(VERSION 3.5) + +include(${CMAKE_CURRENT_SOURCE_DIR}/../../../hw/bsp/family_support.cmake) + +# gets PROJECT name for the example +family_get_project_name(PROJECT ${CMAKE_CURRENT_LIST_DIR}) + +project(${PROJECT}) + +# Checks this example is valid for the family and initializes the project +family_initialize_project(${PROJECT} ${CMAKE_CURRENT_LIST_DIR}) + +add_executable(${PROJECT}) + +# Example source +target_sources(${PROJECT} PUBLIC + ${CMAKE_CURRENT_SOURCE_DIR}/src/main.c + ) + +# Example include +target_include_directories(${PROJECT} PUBLIC + ${CMAKE_CURRENT_SOURCE_DIR}/src + ) + +# Configure compilation flags and libraries for the example... see the corresponding function +# in hw/bsp/FAMILY/family.cmake for details. +family_configure_host_example(${PROJECT})
\ No newline at end of file |
