X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2Frest-server%2FCMakeLists.txt;fp=src%2Frest-server%2FCMakeLists.txt;h=56294968b52d957ae288977f61539a3318b60087;hb=e64778dac480d66d93449efd3e9767cea4f980f9;hp=0000000000000000000000000000000000000000;hpb=56044b79a2282e50a8c271b36289b1724cb40cd8;p=ric-plt%2Fxapp-frame-cpp.git diff --git a/src/rest-server/CMakeLists.txt b/src/rest-server/CMakeLists.txt new file mode 100644 index 0000000..5629496 --- /dev/null +++ b/src/rest-server/CMakeLists.txt @@ -0,0 +1,48 @@ +# ================================================================================== +# Copyright (c) 2020 HCL Technologies Limited. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ================================================================================== +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17") +set(CMAKE_CXX_STANDARD 17) +# BUILD TYPE +message("A ${CMAKE_BUILD_TYPE} build configuration is detected") +message("CPP flag is ${CMAKE_CXX_FLAGS} ") +message("CPP standard is ${CMAKE_CXX_STANDARD} ") + +#include_directories( "${srcd}/src/rest-server") +#SOURCE FILES +file(GLOB SOURCE_FILES "${srcd}/src/rest-server/*.cpp" ) + + +add_library(rest-server_objects OBJECT ${SOURCE_FILES}) + +target_include_directories (rest-server_objects PUBLIC + $ + $ + PRIVATE src) + +# header files should go into .../include/xfcpp/ + +file(GLOB SOURCE_INSTALL_FILES "${srcd}/src/rest-server/*.h") +#set( install_inc_server "include/ricxfcpp/rest-server" ) + +if( DEV_PKG ) + install( FILES + ${SOURCE_INSTALL_FILES} + DESTINATION ${install_inc} + ) +endif() + + +