CMakeLists.txt 816 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(win_directx_helper STATIC)
  7. init_target(win_directx_helper "(external)")
  8. add_library(desktop-app::win_directx_helper ALIAS win_directx_helper)
  9. nice_target_sources(win_directx_helper ${CMAKE_CURRENT_SOURCE_DIR}
  10. PRIVATE
  11. win_directx_helper.cpp
  12. )
  13. validate_d3d_compiler(win_directx_helper)
  14. target_link_libraries(win_directx_helper
  15. PUBLIC
  16. desktop-app::external_openssl
  17. )
  18. if (NOT DESKTOP_APP_SPECIAL_TARGET STREQUAL "")
  19. target_compile_definitions(win_directx_helper
  20. PRIVATE
  21. WIN_DIRECTX_HELPER_SPECIAL_TARGET=${DESKTOP_APP_SPECIAL_TARGET}
  22. )
  23. endif()