mirror of
https://github.com/borgesdan/xn65
synced 2024-12-29 21:54:47 +01:00
79 lines
2.4 KiB
CMake
79 lines
2.4 KiB
CMake
# CMakeList.txt : CMake project for xna, include source and define
|
|
# project specific logic here.
|
|
#
|
|
|
|
# Add source to this project's executable.
|
|
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"
|
|
"platform/clock-dx.cpp"
|
|
"csharp/stream.cpp"
|
|
"platform/gdevicemanager-dx.cpp"
|
|
"platform/vertexinput-dx.cpp"
|
|
"platform/shader-dx.cpp"
|
|
"platform/rasterizerstate-dx.cpp"
|
|
"platform/vertexbuffer-dx.cpp"
|
|
"platform/indexbuffer-dx.cpp"
|
|
"common/matrix.cpp"
|
|
"platform/constbuffer-dx.cpp"
|
|
"platform/databuffer-dx.cpp"
|
|
"platform/samplerstate-dx.cpp"
|
|
"platform/spritebatch-dx.cpp"
|
|
"platform/spritefont-dx.cpp"
|
|
"platform/depthstencilstate-dx.cpp"
|
|
"platform/keyboard-dx.cpp"
|
|
"platform/mouse-dx.cpp"
|
|
"platform/gamepad-dx.cpp"
|
|
"common/vectors.cpp"
|
|
"platform/soundeffect-dx.cpp"
|
|
"platform/displaymode-dx.cpp"
|
|
"platform/presentparameters-dx.cpp"
|
|
"game/component.cpp"
|
|
"content/manager.cpp"
|
|
"content/reader.cpp"
|
|
"csharp/binary.cpp"
|
|
"content/decstream.cpp" "content/lzx/decoder.cpp" "content/lzx/decoderstream.cpp" "content/typereadermanager.cpp" "csharp/object.cpp" "csharp/type.cpp" "platform/init-dx.cpp" "game/servicecontainer.cpp")
|
|
|
|
if (CMAKE_VERSION VERSION_GREATER 3.12)
|
|
set_property(TARGET xna PROPERTY CXX_STANDARD 20)
|
|
endif()
|
|
|
|
# TODO: Add tests and install targets if needed.
|
|
|
|
|
|
# -- Biblioteca DirectxTK --
|
|
# Url: https://github.com/microsoft/DirectXTK/wiki/DirectXTK
|
|
#
|
|
# -- Instalação via vcpkg --
|
|
# Para efetuar o download do vcpkg verifique o caminho abaixo
|
|
# Url: https://learn.microsoft.com/pt-br/vcpkg/get_started/get-started?pivots=shell-cmd
|
|
#
|
|
# Siga os procedimentos da página oficial do DirectxTK para instalação via vcpkg
|
|
# $- vcpkg install directxtk[tools,spectre,xaudio2-9]
|
|
#
|
|
# [!] Atualize o arquivo CMakePresets.json, nos 'presets' necessários,
|
|
# para que find_package execute corretamente
|
|
#
|
|
# "cacheVariables": {
|
|
# "CMAKE_TOOLCHAIN_FILE": "{VCPKG_DIR}\\scripts\\buildsystems\\vcpkg.cmake"
|
|
# }
|
|
#
|
|
# Instalaçao do libmspack
|
|
# $- vcpkg install libmspack
|
|
#
|
|
find_package(directxtk CONFIG REQUIRED)
|
|
|
|
include_directories($ENV{VCPKG_ROOT}\\packages\\libmspack_x64-windows\\include)
|
|
|
|
target_link_libraries(${PROJECT_NAME}
|
|
D3d11.lib dxgi.lib dxguid.lib d3dcompiler.lib Microsoft::DirectXTK
|
|
$ENV{VCPKG_ROOT}\\packages\\libmspack_x64-windows\\lib\\libmspack.lib
|
|
)
|