forked from aws/aws-sdk-cpp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
50 lines (37 loc) · 1.51 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
cmake_minimum_required(VERSION 2.6)
project(aws-cpp-sdk-transfer)
file( GLOB TRANSFER_HEADERS "include/aws/transfer/*.h" )
file( GLOB TRANSFER_RESOURCE_HEADERS "include/aws/transfer/resource/*.h" )
file( GLOB TRANSFER_SOURCE "source/transfer/*.cpp" )
if(MSVC)
source_group("Header Files\\aws\\transfer" FILES ${TRANSFER_HEADERS})
source_group("Header Files\\aws\\transfer\\resource" FILES ${TRANSFER_RESOURCE_HEADERS})
source_group("Source Files\\transfer" FILES ${TRANSFER_SOURCE})
endif()
file(GLOB ALL_TRANSFER_HEADERS
${TRANSFER_HEADERS}
${TRANSFER_RESOURCE_HEADERS}
)
file(GLOB ALL_TRANSFER_SOURCE
${TRANSFER_SOURCE}
)
file(GLOB ALL_TRANSFER
${ALL_TRANSFER_HEADERS}
${ALL_TRANSFER_SOURCE}
)
set(TRANSFER_INCLUDES
"${CMAKE_CURRENT_SOURCE_DIR}/include/"
"${AWS_NATIVE_SDK_ROOT}/aws-cpp-sdk-s3/include/"
"${CORE_DIR}/include/"
)
include_directories(${TRANSFER_INCLUDES})
if(MSVC AND BUILD_SHARED_LIBS)
add_definitions("-DAWS_TRANSFER_EXPORTS")
endif()
add_library(aws-cpp-sdk-transfer ${LIBTYPE} ${ALL_TRANSFER})
target_link_libraries(aws-cpp-sdk-transfer aws-cpp-sdk-s3)
install (TARGETS aws-cpp-sdk-transfer
ARCHIVE DESTINATION ${ARCHIVE_DIRECTORY}/${SDK_INSTALL_BINARY_PREFIX}/\${CMAKE_INSTALL_CONFIG_NAME}
LIBRARY DESTINATION lib/${SDK_INSTALL_BINARY_PREFIX}/\${CMAKE_INSTALL_CONFIG_NAME}
RUNTIME DESTINATION bin/${SDK_INSTALL_BINARY_PREFIX}/\${CMAKE_INSTALL_CONFIG_NAME})
install (FILES ${ALL_TRANSFER_HEADERS} DESTINATION include/aws/transfer)