X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=CMakeLists.txt;h=01f8da0180af5fa9826a4d5bce07d5f52dc01dc0;hb=56044b79a2282e50a8c271b36289b1724cb40cd8;hp=949b158be832290f3a389f97a27b58b9c4cd4f60;hpb=6ef23e1d7f7f47ccab5be6ff1b68e5cfdda80ad2;p=ric-plt%2Fxapp-frame-cpp.git diff --git a/CMakeLists.txt b/CMakeLists.txt index 949b158..01f8da0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -29,8 +29,8 @@ project( ricxfcpp ) cmake_minimum_required( VERSION 3.5 ) set( major_version "2" ) # should be automatically populated from git tag later, but until CI process sets a tag we use this -set( minor_version "0" ) -set( patch_level "0" ) +set( minor_version "3" ) +set( patch_level "7" ) set( install_root "${CMAKE_INSTALL_PREFIX}" ) set( install_inc "include/ricxfcpp" ) @@ -156,7 +156,7 @@ set ( srcd "${CMAKE_CURRENT_SOURCE_DIR}" ) # but Cmake insists on having these exist when we add them to include directories to # enable code to find them after we build them. # -include_directories( "${srcd}/src/messaging;${srcd}/src/json;${srcd}/src/alarm;${srcd}/ext/jsmn" ) +include_directories("${srcd}/src/messaging;${srcd}/src/json;${srcd}/src/alarm;${srcd}/src/metrics;${srcd}/src/config;${srcd}/src/rest/model;${srcd}/ext/jsmn") # Compiler flags # @@ -186,12 +186,15 @@ add_subdirectory( src/json ) add_subdirectory( src/messaging ) add_subdirectory( src/xapp ) add_subdirectory( src/alarm ) +add_subdirectory( src/metrics ) +add_subdirectory( src/config ) +add_subdirectory( src/rest ) #add_subdirectory( doc ) # this will auto skip if {X}fm is not available # shared and static libraries are built from the same object files. # add_library( ricxfcpp_shared SHARED - "$;$;$;$" + "$;$;$;$;$;$" ) set_target_properties( ricxfcpp_shared PROPERTIES @@ -199,12 +202,12 @@ set_target_properties( ricxfcpp_shared SOVERSION ${major_version} VERSION ${major_version}.${minor_version}.${patch_level} ) -target_include_directories( ricxfcpp_shared PUBLIC "src/messenger" "src/xapp" ) +#target_include_directories( ricxfcpp_shared PUBLIC "src/alarm" "src/metrics" "src/messenger" "src/xapp" ) # we only build/export the static archive (.a) if generating a dev package if( DEV_PKG ) add_library( ricxfcpp_static STATIC - "$;$;$" + "$;$;$;$;$;$" ) set_target_properties( ricxfcpp_static PROPERTIES @@ -212,14 +215,14 @@ if( DEV_PKG ) SOVERSION ${major_version} VERSION ${major_version}.${minor_version}.${patch_level} ) - target_include_directories( ricxfcpp_static PUBLIC "src/messenger" "src/xapp" ) +# target_include_directories( ricxfcpp_static PUBLIC "src/alarm" "src/metrics" "src/messenger" "src/xapp" ) endif() # -------- unit testing ------------------------------------------------------- enable_testing() add_test( NAME drive_unit_tests - COMMAND bash ../test/unit_test.sh -q + COMMAND bash ../test/unit_test.sh -q CMBUILD=${CMAKE_CURRENT_BINARY_DIR} WORKING_DIRECTORY ../test )