CMakeLists.txt 766 B

1234567891011121314151617181920212223242526
  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_expected INTERFACE IMPORTED GLOBAL)
  7. add_library(desktop-app::external_expected ALIAS external_expected)
  8. if (DESKTOP_APP_USE_PACKAGED)
  9. if (DESKTOP_APP_USE_PACKAGED_LAZY)
  10. find_package(tl-expected QUIET)
  11. else()
  12. find_package(tl-expected)
  13. endif()
  14. if (tl-expected_FOUND)
  15. target_link_libraries(external_expected INTERFACE tl::expected)
  16. return()
  17. endif()
  18. endif()
  19. target_include_directories(external_expected SYSTEM
  20. INTERFACE
  21. ${third_party_loc}/expected/include
  22. )