2026-09-17 20:58:41 -07:00
|
|
|
file(
|
|
|
|
|
GLOB
|
|
|
|
|
EXAMPLES_DIRECTX_SOURCES
|
|
|
|
|
*.c
|
|
|
|
|
)
|
|
|
|
|
include(${CMAKE_CURRENT_SOURCE_DIR}/../../resource/FindDirectX.cmake)
|
|
|
|
|
|
|
|
|
|
if(${DIRECTX_FOUND})
|
|
|
|
|
foreach(PATH IN LISTS EXAMPLES_DIRECTX_SOURCES)
|
|
|
|
|
get_filename_component(TARGET ${PATH} NAME_WE)
|
2026-09-17 21:44:55 -07:00
|
|
|
add_executable(${TARGET} ${PATH})
|
2026-09-17 20:58:41 -07:00
|
|
|
target_include_directories(
|
|
|
|
|
${TARGET}
|
|
|
|
|
PRIVATE
|
|
|
|
|
${DIRECTX_INCLUDE_DIRS}
|
|
|
|
|
)
|
|
|
|
|
target_link_libraries(
|
2026-09-17 21:44:55 -07:00
|
|
|
${TARGET}
|
|
|
|
|
PRIVATE
|
|
|
|
|
Mw
|
|
|
|
|
)
|
2026-09-17 20:58:41 -07:00
|
|
|
endforeach()
|
|
|
|
|
endif()
|