1 # ==================================================================================
2 # Copyright (c) 2020 HCL Technologies Limited.
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
8 # http://www.apache.org/licenses/LICENSE-2.0
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
15 # ==================================================================================
16 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17")
17 set(CMAKE_CXX_STANDARD 17)
19 message("A ${CMAKE_BUILD_TYPE} build configuration is detected")
20 message("CPP flag is ${CMAKE_CXX_FLAGS} ")
21 message("CPP standard is ${CMAKE_CXX_STANDARD} ")
23 include_directories( "${srcd}/src/rest-client")
25 file(GLOB SOURCE_FILES "${srcd}/src/rest-client/*.cpp" )
28 add_library(rest-client_objects OBJECT ${SOURCE_FILES})
30 target_include_directories (rest-client_objects PUBLIC
31 $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
32 $<INSTALL_INTERFACE:include>
35 # header files should go into .../include/xfcpp/
37 file(GLOB SOURCE_INSTALL_FILES "${srcd}/src/rest-client/*.h")
38 #set( install_inc_client "include/ricxfcpp/rest-client" )
42 ${SOURCE_INSTALL_FILES}
43 DESTINATION ${install_inc}