This commit is contained in:
parent
3e9ffcee0b
commit
f2dd0ac3f1
13 changed files with 698 additions and 15 deletions
24
examples/dxdemos/CMakeLists.txt
Normal file
24
examples/dxdemos/CMakeLists.txt
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
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)
|
||||
add_executable(${TARGET} MACOSX_BUNDLE ${PATH})
|
||||
target_include_directories(
|
||||
${TARGET}
|
||||
PRIVATE
|
||||
${DIRECTX_INCLUDE_DIRS}
|
||||
)
|
||||
target_link_libraries(
|
||||
${TARGET}
|
||||
PRIVATE
|
||||
Mw
|
||||
${DIRECTX_D3DX9_LIBRARIES}
|
||||
)
|
||||
endforeach()
|
||||
endif()
|
||||
Loading…
Add table
Add a link
Reference in a new issue