CMakeLists.txt 564 B

123456789101112131415161718192021222324252627282930
  1. add_library(videod3dcommon
  2. D3DCommon.cpp
  3. D3DCommon.h
  4. Shader.cpp
  5. Shader.h
  6. SwapChain.cpp
  7. SwapChain.h
  8. )
  9. target_link_libraries(videod3dcommon
  10. PUBLIC
  11. common
  12. videocommon
  13. spirv_cross
  14. )
  15. target_include_directories(videod3dcommon
  16. SYSTEM PUBLIC
  17. ${CMAKE_SOURCE_DIR}/Externals/glslang/glslang/Public
  18. SYSTEM PRIVATE
  19. ${CMAKE_SOURCE_DIR}/Externals/glslang/StandAlone
  20. ${CMAKE_SOURCE_DIR}/Externals/glslang/SPIRV
  21. ${CMAKE_SOURCE_DIR}/Externals/glslang
  22. )
  23. if(MSVC)
  24. # Add precompiled header
  25. target_link_libraries(videod3dcommon PRIVATE use_pch)
  26. endif()