-
Notifications
You must be signed in to change notification settings - Fork 11
/
CMakeLists.txt
45 lines (36 loc) · 1.16 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
cmake_minimum_required (VERSION 3.10)
#PROJECT's NAME
project(huaweicloud_cpp_sdk_v3)
set(CMAKE_CXX_STANDARD 14)
include(GNUInstallDirs)
include(FindPackageHandleStandardArgs)
option(ENABLE_SHARED "Enable shared library" ON)
option(ENABLE_RTTR "Enable rttr library" OFF)
option(ENABLE_BSON "Enable bson library" OFF)
if(ENABLE_SHARED)
set(LIB_TYPE SHARED)
add_definitions(-DHUAWEICLOUD_SHARED)
else()
set(LIB_TYPE STATIC)
endif()
if(ENABLE_BSON)
add_definitions(-DBOOST_NO_CXX11_DELETED_FUNCTIONS)
add_definitions(-DHUAWEICLOUD_SDK_BSON_)
endif()
SET(BUILD_SERVICE image)
SET(SERVICE_VERSION v2)
if(BUILD_SERVICE STREQUAL "all" OR BUILD_SERVICE STREQUAL "")
# USE MULTIPLE SERVICES(EXAMPLE: USE VPC ECS AND EIP)
add_subdirectory(core)
#add_subdirectory(tms/src/v1)
#add_subdirectory(eps/src/v1)
#add_subdirectory(smn/src/v2)
add_subdirectory(drs/src/v3)
add_subdirectory(drs/src/v5)
message(STATUS "Build all Services")
else()
# USE SINGLE SERVICE(EXAMPLE: USE VPC ECS AND EIP)
add_subdirectory(core)
add_subdirectory(${BUILD_SERVICE}/src/${SERVICE_VERSION})
message(STATUS "'BUILD_SERVICE'=${BUILD_SERVICE}")
endif()