Update examples/dxdemos/CMakeLists.txt
All checks were successful
pyrite-dev/milsko/pipeline/head This commit looks good
All checks were successful
pyrite-dev/milsko/pipeline/head This commit looks good
This commit is contained in:
parent
ffa58c38a3
commit
e98b4ca0c1
1 changed files with 9 additions and 17 deletions
|
|
@ -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()
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue