2025-10-23 17:04:35 +00:00
|
|
|
# $Id$
|
|
|
|
|
file(
|
|
|
|
|
GLOB
|
2025-10-23 17:42:13 +00:00
|
|
|
EXAMPLES_BASIC_SOURCES
|
2025-10-23 17:04:35 +00:00
|
|
|
*.c
|
|
|
|
|
)
|
|
|
|
|
|
2025-10-23 17:42:13 +00:00
|
|
|
foreach(PATH IN LISTS EXAMPLES_BASIC_SOURCES)
|
2025-10-23 17:04:35 +00:00
|
|
|
get_filename_component(
|
|
|
|
|
TARGET
|
|
|
|
|
${PATH}
|
|
|
|
|
NAME_WE
|
|
|
|
|
)
|
|
|
|
|
add_executable(
|
|
|
|
|
${TARGET} ${PATH}
|
|
|
|
|
)
|
2025-10-23 17:42:13 +00:00
|
|
|
target_include_directories(
|
|
|
|
|
${TARGET}
|
|
|
|
|
PRIVATE
|
|
|
|
|
${CMAKE_SOURCE_DIR}/include
|
|
|
|
|
)
|
2025-10-23 17:04:35 +00:00
|
|
|
target_link_libraries(
|
|
|
|
|
${TARGET}
|
|
|
|
|
PRIVATE
|
|
|
|
|
Mw
|
|
|
|
|
)
|
|
|
|
|
endforeach()
|