X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=CMakeLists.txt;h=26b429b7f0691cea9ec7867f8f861fcc66d5c169;hb=bc9f1db5b44b2d8e83b30d47fdb509e348e2c378;hp=c82566c4328f6fa1ababb382bccfe4a7dac77bf6;hpb=555fc14abec797f96cd4c03bf997ce3711984393;p=ric-plt%2Fxapp-frame-cpp.git diff --git a/CMakeLists.txt b/CMakeLists.txt index c82566c..26b429b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -30,7 +30,7 @@ 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 "3" ) -set( patch_level "3" ) +set( patch_level "8" ) set( install_root "${CMAKE_INSTALL_PREFIX}" ) set( install_inc "include/ricxfcpp" ) @@ -100,7 +100,7 @@ add_definitions( -DMAJOR_VER=${major_version} -DMINOR_VER=${minor_version} -DPATCH_VER=${patch_level} - -DDEBUG=${debugging} + #-DDEBUG=${debugging} ) # ---------------- suss out pkg gen tools so we don't fail generating packages that the system cannot support -------------- @@ -156,10 +156,13 @@ 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}/src/metrics;${srcd}/src/config;${srcd}/ext/jsmn" ) +#include_directories( "${srcd}/src/messaging;${srcd}/src/json;${srcd}/src/alarm;${srcd}/src/metrics;${srcd}/src/config;${srcd}/ext/jsmn" ) +include_directories( "${srcd}/src/messaging;${srcd}/src/json;${srcd}/src/alarm;${srcd}/src/metrics;${srcd}/src/config;${srcd}/ext/jsmn;;${srcd}/src/model;${srcd}/src/rest-client;${srcd}/src/rest-server" ) # Compiler flags # +#set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17") +#set(CMAKE_CXX_STANDARD 17) set( CMAKE_POSITION_INDEPENDENT_CODE ON ) set( CMAKE_C_FLAGS "-g " ) set( CMAKE_CPP_FLAGS "-g " ) @@ -188,12 +191,16 @@ add_subdirectory( src/xapp ) add_subdirectory( src/alarm ) add_subdirectory( src/metrics ) add_subdirectory( src/config ) +add_subdirectory( src/model ) +add_subdirectory( src/rest-client ) +add_subdirectory( src/rest-server ) + #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 @@ -206,7 +213,7 @@ set_target_properties( ricxfcpp_shared # 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 @@ -281,3 +288,4 @@ IF( EXISTS "${CMAKE_ROOT}/Modules/CPack.cmake" ) INCLUDE( CPack ) ENDIF() +