CMakeLists-minimal.txt - AWS Code Sample


#Copyright, Inc. or its affiliates. All Rights Reserved. #SPDX-License-Identifier: Apache-2.0 # Minimal CMakeLists.txt for the AWS SDK for C++. cmake_minimum_required(VERSION 3.3) set(CMAKE_CXX_STANDARD 11) project(app LANGUAGES CXX) # Use shared libraries set(BUILD_SHARED_LIBS ON CACHE STRING "Link to shared libraries by default.") #Include in any AWS service packages your code will be using by service name find_package(AWSSDK REQUIRED COMPONENTS s3) add_executable(${PROJECT_NAME} "main.cpp") #add app's main sourcefile set_compiler_flags(${PROJECT_NAME}) set_compiler_warnings(${PROJECT_NAME}) target_link_libraries(${PROJECT_NAME} ${AWSSDK_LINK_LIBRARIES})