X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2Fmodel%2FCMakeLists.txt;fp=src%2Fmodel%2FCMakeLists.txt;h=1d61af01860ecfd1f9f22ea78162c21fe4cf80a2;hb=e64778dac480d66d93449efd3e9767cea4f980f9;hp=0000000000000000000000000000000000000000;hpb=56044b79a2282e50a8c271b36289b1724cb40cd8;p=ric-plt%2Fxapp-frame-cpp.git diff --git a/src/model/CMakeLists.txt b/src/model/CMakeLists.txt new file mode 100644 index 0000000..1d61af0 --- /dev/null +++ b/src/model/CMakeLists.txt @@ -0,0 +1,47 @@ +# ================================================================================== +# 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/model") +#SOURCE FILES +file(GLOB SOURCE_FILES "${srcd}/src/model/*.cpp" ) + + +add_library(model_objects OBJECT ${SOURCE_FILES}) + +target_include_directories (model_objects PUBLIC + $ + $ + PRIVATE src) + +# header files should go into .../include/xfcpp/ + +file(GLOB SOURCE_INSTALL_FILES "${srcd}/src/model/*.h") +#set( install_inc_client "include/ricxfcpp/rest-client" ) + +if( DEV_PKG ) + install( FILES + ${SOURCE_INSTALL_FILES} + DESTINATION ${install_inc} + ) +endif() + +