CMakeLists.txt 830 B

12345678910111213141516171819202122232425262728
  1. # This file is part of Desktop App Toolkit,
  2. # a set of libraries for developing nice desktop applications.
  3. #
  4. # For license and copyright information please follow this link:
  5. # https://github.com/desktop-app/legal/blob/master/LEGAL
  6. add_library(external_angle INTERFACE IMPORTED GLOBAL)
  7. add_library(desktop-app::external_angle ALIAS external_angle)
  8. if (WIN32)
  9. target_include_directories(external_angle SYSTEM
  10. INTERFACE
  11. ${libs_loc}/tg_angle/include
  12. )
  13. target_link_libraries(external_angle
  14. INTERFACE
  15. ${libs_loc}/tg_angle/out/$<IF:$<CONFIG:Debug>,Debug,Release>/tg_angle.lib
  16. dxguid.lib
  17. )
  18. target_link_libraries(external_angle
  19. INTERFACE
  20. desktop-app::win_directx_helper
  21. )
  22. target_compile_definitions(external_angle
  23. INTERFACE
  24. KHRONOS_STATIC
  25. )
  26. endif()