milsko/examples/basic/CMakeLists.txt
IoI_xD 83f5f7a820
All checks were successful
pyrite-dev/milsko/pipeline/head This commit looks good
examples cmake doesnt need win32
2026-04-14 23:04:13 -05:00

22 lines
367 B
CMake

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