mirror of
https://github.com/borgesdan/xn65
synced 2024-12-29 21:54:47 +01:00
Separa a pasta framework em framework-dx
This commit is contained in:
parent
d1f194e91d
commit
bc13c6f8ee
@ -22,6 +22,7 @@ project ("xna")
|
||||
# Include sub-projects.
|
||||
include_directories(${PROJECT_INCLUDES_DIR})
|
||||
add_subdirectory ("framework")
|
||||
add_subdirectory ("framework-dx")
|
||||
|
||||
add_subdirectory ("samples")
|
||||
|
||||
|
38
framework-dx/CMakeLists.txt
Normal file
38
framework-dx/CMakeLists.txt
Normal file
@ -0,0 +1,38 @@
|
||||
# CMakeList.txt : CMake project for xna, include source and define
|
||||
# project specific logic here.
|
||||
#
|
||||
|
||||
# Add source to this project's executable.
|
||||
add_library (Xn65DX STATIC
|
||||
"window.cpp"
|
||||
"device.cpp"
|
||||
"adapter.cpp"
|
||||
"swapchain.cpp"
|
||||
"rendertarget.cpp"
|
||||
"texture.cpp"
|
||||
"blendstate.cpp"
|
||||
"game.cpp"
|
||||
"gdevicemanager.cpp"
|
||||
"rasterizerstate.cpp"
|
||||
"samplerstate.cpp"
|
||||
"sprite.cpp"
|
||||
"depthstencilstate.cpp"
|
||||
"keyboard.cpp"
|
||||
"mouse.cpp"
|
||||
"gamepad.cpp"
|
||||
"soundeffect.cpp"
|
||||
"displaymode.cpp"
|
||||
"init.cpp"
|
||||
"audioengine.cpp"
|
||||
"effect.cpp"
|
||||
"screen.cpp")
|
||||
|
||||
if (CMAKE_VERSION VERSION_GREATER 3.12)
|
||||
set_property(TARGET Xn65DX PROPERTY CXX_STANDARD 20)
|
||||
endif()
|
||||
|
||||
find_package(directxtk CONFIG REQUIRED)
|
||||
|
||||
target_link_libraries(
|
||||
Xn65DX Xn65 D3d11.lib dxgi.lib dxguid.lib d3dcompiler.lib Microsoft::DirectXTK dxguid.lib
|
||||
)
|
@ -17,41 +17,10 @@ add_library (Xn65 STATIC
|
||||
"common/collision.cpp"
|
||||
"common/gjk.cpp"
|
||||
"common/numerics.cpp"
|
||||
"common/packedvalue.cpp"
|
||||
"platform-dx/window.cpp"
|
||||
"platform-dx/device.cpp"
|
||||
"platform-dx/adapter.cpp"
|
||||
"platform-dx/swapchain.cpp"
|
||||
"platform-dx/rendertarget.cpp"
|
||||
"platform-dx/texture.cpp"
|
||||
"platform-dx/blendstate.cpp"
|
||||
"platform-dx/game.cpp"
|
||||
"platform-dx/gdevicemanager.cpp"
|
||||
"platform-dx/rasterizerstate.cpp"
|
||||
"platform-dx/samplerstate.cpp"
|
||||
"platform-dx/sprite.cpp"
|
||||
"platform-dx/depthstencilstate.cpp"
|
||||
"platform-dx/keyboard.cpp"
|
||||
"platform-dx/mouse.cpp"
|
||||
"platform-dx/gamepad.cpp"
|
||||
"platform-dx/soundeffect.cpp"
|
||||
"platform-dx/displaymode.cpp"
|
||||
"platform-dx/init.cpp"
|
||||
"platform-dx/audioengine.cpp"
|
||||
"common/packedvalue.cpp"
|
||||
"graphics/gresource.cpp"
|
||||
"platform-dx/effect.cpp"
|
||||
"exception.cpp" "platform-dx/screen.cpp" )
|
||||
"exception.cpp")
|
||||
|
||||
if (CMAKE_VERSION VERSION_GREATER 3.12)
|
||||
set_property(TARGET Xn65 PROPERTY CXX_STANDARD 20)
|
||||
endif()
|
||||
|
||||
# TODO: Add tests and install targets if needed.
|
||||
|
||||
find_package(directxtk CONFIG REQUIRED)
|
||||
|
||||
target_link_libraries(
|
||||
Xn65 D3d11.lib dxgi.lib dxguid.lib d3dcompiler.lib Microsoft::DirectXTK dxguid.lib
|
||||
#"${PROJECT_INCLUDES_DIR}/libmspack/mspack.lib"
|
||||
#"${PROJECT_INCLUDES_DIR}/effects11/Effects11.lib"
|
||||
)
|
||||
|
@ -10,4 +10,4 @@ if (CMAKE_VERSION VERSION_GREATER 3.12)
|
||||
endif()
|
||||
|
||||
# TODO: Add tests and install targets if needed.
|
||||
target_link_libraries(BlankApp Xn65)
|
||||
target_link_libraries(BlankApp Xn65DX)
|
||||
|
@ -11,5 +11,5 @@ endif()
|
||||
|
||||
# TODO: Add tests and install targets if needed.
|
||||
target_link_libraries(
|
||||
PlatformApp Xn65
|
||||
PlatformApp Xn65DX
|
||||
)
|
@ -4,4 +4,4 @@
|
||||
|
||||
# Add source to this project's executable.
|
||||
add_subdirectory ("01_blank")
|
||||
add_subdirectory ("02_PlatfformerStarterKit")
|
||||
#add_subdirectory ("02_PlatfformerStarterKit")
|
||||
|
Loading…
x
Reference in New Issue
Block a user