Update examples/dxdemos/CMakeLists.txt
All checks were successful
pyrite-dev/milsko/pipeline/head This commit looks good

This commit is contained in:
IoI_xD 2026-09-19 02:00:27 +09:00
commit e98b4ca0c1

View file

@ -3,21 +3,13 @@ file(
EXAMPLES_DIRECTX_SOURCES EXAMPLES_DIRECTX_SOURCES
*.c *.c
) )
include(${CMAKE_CURRENT_SOURCE_DIR}/../../resource/FindDirectX.cmake)
if(${DIRECTX_FOUND}) foreach(PATH IN LISTS EXAMPLES_DIRECTX_SOURCES)
foreach(PATH IN LISTS EXAMPLES_DIRECTX_SOURCES)
get_filename_component(TARGET ${PATH} NAME_WE) get_filename_component(TARGET ${PATH} NAME_WE)
add_executable(${TARGET} ${PATH}) add_executable(${TARGET} ${PATH})
target_include_directories( target_link_libraries(
${TARGET} ${TARGET}
PRIVATE PRIVATE
${DIRECTX_INCLUDE_DIRS} Mw
) )
target_link_libraries( endforeach()
${TARGET}
PRIVATE
Mw
)
endforeach()
endif()