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}
PRIVATE
${DIRECTX_INCLUDE_DIRS}
)
target_link_libraries( target_link_libraries(
${TARGET} ${TARGET}
PRIVATE PRIVATE
Mw Mw
) )
endforeach() endforeach()
endif()