CMakeLists.txt 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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. cmake_minimum_required(VERSION 3.20)
  9. # The 3P package uses an O3DE custom cmake function 'ly_target_include_system_directories'. Duplicate it here
  10. function(ly_target_include_system_directories)
  11. set(options)
  12. set(oneValueArgs TARGET)
  13. set(multiValueArgs)
  14. cmake_parse_arguments(ly_target_include_system_directories "${options}" "${oneValueArgs}" "${multiValueArgs}" ${ARGN})
  15. if(NOT ly_target_include_system_directories_TARGET)
  16. message(FATAL_ERROR "Target not provided")
  17. endif()
  18. target_compile_options(${ly_target_include_system_directories_TARGET}
  19. INTERFACE
  20. ${LY_CXX_SYSTEM_INCLUDE_CONFIGURATION_FLAG}
  21. )
  22. target_include_directories(${ly_target_include_system_directories_TARGET} SYSTEM ${ly_target_include_system_directories_UNPARSED_ARGUMENTS})
  23. endfunction()
  24. # The 3P package uses an O3DE custom cmake function 'ly_add_dependencies'. It is used to mark dependencies that need to be
  25. # copied to the final executable path, but that is not needed here, so just stub out
  26. function(ly_add_dependencies TARGET)
  27. endfunction()
  28. PROJECT(test_AWSGameLift VERSION 1.0 LANGUAGES CXX)
  29. find_package(OpenSSL)
  30. find_package(AWSGameLiftServerSDK)
  31. add_executable(test_AWSGameLift test_AWSGameLiftServer.cpp)
  32. target_link_libraries(test_AWSGameLift PRIVATE 3rdParty::OpenSSL 3rdParty::AWSGameLiftServerSDK)