2
0

Findazslc.cmake.Windows 781 B

123456789101112131415161718192021222324
  1. #
  2. # Copyright (c) Contributors to the Open 3D Engine Project.
  3. # For complete copyright and license terms please see the LICENSE at the root of this distribution.
  4. #
  5. # SPDX-License-Identifier: Apache-2.0 OR MIT
  6. #
  7. set(MY_NAME "azslc")
  8. set(TARGET_WITH_NAMESPACE "3rdParty::$${MY_NAME}")
  9. if (TARGET $${TARGET_WITH_NAMESPACE})
  10. return()
  11. endif()
  12. set(output_subfolder "Builders/AZSLc")
  13. set($${MY_NAME}_BINARY_DIR $${CMAKE_CURRENT_LIST_DIR}/$${MY_NAME}/bin)
  14. set($${MY_NAME}_RUNTIME_DEPENDENCIES
  15. $${$${MY_NAME}_BINARY_DIR}/Release/azslc.exe
  16. )
  17. add_library($${TARGET_WITH_NAMESPACE} INTERFACE IMPORTED GLOBAL)
  18. ly_add_target_files(TARGETS $${TARGET_WITH_NAMESPACE} OUTPUT_SUBDIRECTORY $${output_subfolder} FILES $${$${MY_NAME}_RUNTIME_DEPENDENCIES})
  19. set($${MY_NAME}_FOUND True)