CMakeLists.txt 778 B

1234567891011121314151617181920212223242526272829303132
  1. # Source files and their filters
  2. include(CMakeSources.cmake)
  3. # Includes
  4. set(BansheeD3D11RenderAPI_INC
  5. "./"
  6. "../BansheeUtility"
  7. "../BansheeCore")
  8. include_directories(${BansheeD3D11RenderAPI_INC})
  9. # Target
  10. add_library(BansheeD3D11RenderAPI SHARED ${BS_BANSHEED3D11RENDERAPI_SRC})
  11. # Defines
  12. target_compile_definitions(BansheeD3D11RenderAPI PRIVATE -DBS_RSD3D11_EXPORTS)
  13. # Libraries
  14. if(BS_64BIT)
  15. link_directories("$(DXSDK_DIR)Lib/x64")
  16. else()
  17. link_directories("$(DXSDK_DIR)Lib/x86")
  18. endif()
  19. ## External lib: DirectX 11
  20. target_link_libraries(BansheeD3D11RenderAPI d3d11 dxgi dxguid D3DCompiler)
  21. ## Local libs
  22. target_link_libraries(BansheeD3D11RenderAPI BansheeUtility BansheeCore)
  23. # IDE specific
  24. set_property(TARGET BansheeD3D11RenderAPI PROPERTY FOLDER Plugins)