Files
milsko/examples/basic/CMakeLists.txt
NishiOwO f5b6479de0 fix cmake
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@502 b9cfdab3-6d41-4d17-bbe4-086880011989
2025-10-29 08:56:16 +00:00

24 lines
360 B
CMake

# $Id$
file(
GLOB
EXAMPLES_BASIC_SOURCES
*.c
)
foreach(PATH IN LISTS EXAMPLES_BASIC_SOURCES)
get_filename_component(TARGET ${PATH} NAME_WE)
add_executable(${TARGET} ${PATH})
target_link_libraries(
${TARGET}
PRIVATE
Mw
)
if(NOT CMAKE_SYSTEM_NAME STREQUAL "Windows")
target_link_libraries(
${TARGET}
PRIVATE
m
)
endif()
endforeach()