launcher_project_windows.cmake 792 B

12345678910111213141516171819202122232425262728
  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. #
  8. set(ICON_FILE ${project_real_path}/Gem/Resources/GameSDK.ico)
  9. if(NOT EXISTS ${ICON_FILE})
  10. # Try another project-relative path
  11. set(ICON_FILE ${project_real_path}/Resources/GameSDK.ico)
  12. endif()
  13. if(NOT EXISTS ${ICON_FILE})
  14. # Try the common LauncherUnified icon instead
  15. set(ICON_FILE Resources/GameSDK.ico)
  16. endif()
  17. if(EXISTS ${ICON_FILE})
  18. set(target_file ${CMAKE_CURRENT_BINARY_DIR}/${project_name}.GameLauncher.rc)
  19. configure_file(${CMAKE_CURRENT_LIST_DIR}/Launcher.rc.in
  20. ${target_file}
  21. @ONLY
  22. )
  23. set(LY_FILES ${target_file})
  24. endif()