2024-03-18 15:41:46 -03:00
|
|
|
|
# CMakeList.txt : CMake project for xna, include source and define
|
|
|
|
|
# project specific logic here.
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
# Add source to this project's executable.
|
2024-05-01 19:09:43 -03:00
|
|
|
|
add_executable (xna WIN32
|
|
|
|
|
"xna.cpp"
|
|
|
|
|
"platform/window-dx.cpp"
|
|
|
|
|
"platform/device-dx.cpp"
|
|
|
|
|
"platform/adapter-dx.cpp"
|
|
|
|
|
"platform/swapchain-dx.cpp"
|
|
|
|
|
"platform/rendertarget-dx.cpp"
|
|
|
|
|
"platform/texture-dx.cpp"
|
|
|
|
|
"platform/blendstate-dx.cpp"
|
|
|
|
|
"platform/game-dx.cpp"
|
2024-05-20 09:09:08 -03:00
|
|
|
|
|
2024-05-01 19:09:43 -03:00
|
|
|
|
"csharp/stream.cpp"
|
|
|
|
|
"platform/gdevicemanager-dx.cpp"
|
|
|
|
|
"platform/vertexinput-dx.cpp"
|
|
|
|
|
"platform/shader-dx.cpp"
|
|
|
|
|
"platform/rasterizerstate-dx.cpp"
|
|
|
|
|
"platform/vertexbuffer-dx.cpp"
|
2024-05-21 14:20:37 -03:00
|
|
|
|
|
2024-05-20 09:09:08 -03:00
|
|
|
|
|
2024-05-20 09:32:34 -03:00
|
|
|
|
|
2024-05-01 19:09:43 -03:00
|
|
|
|
"platform/samplerstate-dx.cpp"
|
2024-05-18 21:14:56 -03:00
|
|
|
|
"platform/sprite-dx.cpp"
|
|
|
|
|
|
2024-05-01 19:09:43 -03:00
|
|
|
|
"platform/depthstencilstate-dx.cpp"
|
|
|
|
|
"platform/keyboard-dx.cpp"
|
|
|
|
|
"platform/mouse-dx.cpp"
|
|
|
|
|
"platform/gamepad-dx.cpp"
|
|
|
|
|
"platform/soundeffect-dx.cpp"
|
|
|
|
|
"platform/displaymode-dx.cpp"
|
2024-05-22 09:55:25 -03:00
|
|
|
|
|
2024-05-01 19:09:43 -03:00
|
|
|
|
"game/component.cpp"
|
|
|
|
|
"content/manager.cpp"
|
|
|
|
|
"content/reader.cpp"
|
|
|
|
|
"csharp/binary.cpp"
|
2024-05-10 15:51:03 -03:00
|
|
|
|
"content/lzx/decoder.cpp"
|
|
|
|
|
"content/lzx/decoderstream.cpp"
|
|
|
|
|
"content/typereadermanager.cpp"
|
|
|
|
|
"csharp/object.cpp"
|
|
|
|
|
"csharp/type.cpp"
|
|
|
|
|
"platform/init-dx.cpp"
|
|
|
|
|
"game/servicecontainer.cpp"
|
|
|
|
|
"common/color.cpp"
|
2024-05-16 17:23:52 -03:00
|
|
|
|
"common/collision.cpp"
|
|
|
|
|
"common/gjk.cpp"
|
2024-05-20 09:09:08 -03:00
|
|
|
|
"common/numerics.cpp" "common/packedvalue.cpp" "platform/buffer.cpp")
|
2024-03-18 15:41:46 -03:00
|
|
|
|
|
|
|
|
|
if (CMAKE_VERSION VERSION_GREATER 3.12)
|
|
|
|
|
set_property(TARGET xna PROPERTY CXX_STANDARD 20)
|
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
# TODO: Add tests and install targets if needed.
|
2024-04-07 14:06:12 -03:00
|
|
|
|
|
|
|
|
|
find_package(directxtk CONFIG REQUIRED)
|
2024-05-01 19:09:43 -03:00
|
|
|
|
|
2024-05-10 11:58:57 -03:00
|
|
|
|
target_link_libraries(${PROJECT_NAME} D3d11.lib dxgi.lib dxguid.lib d3dcompiler.lib Microsoft::DirectXTK)
|