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
|
||||
*.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)
|
||||
add_executable(${TARGET} ${PATH})
|
||||
target_include_directories(
|
||||
${TARGET}
|
||||
PRIVATE
|
||||
${DIRECTX_INCLUDE_DIRS}
|
||||
)
|
||||
target_link_libraries(
|
||||
${TARGET}
|
||||
PRIVATE
|
||||
Mw
|
||||
)
|
||||
endforeach()
|
||||
endif()
|
||||
foreach(PATH IN LISTS EXAMPLES_DIRECTX_SOURCES)
|
||||
get_filename_component(TARGET ${PATH} NAME_WE)
|
||||
add_executable(${TARGET} ${PATH})
|
||||
target_link_libraries(
|
||||
${TARGET}
|
||||
PRIVATE
|
||||
Mw
|
||||
)
|
||||
endforeach()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue