FOREACH(subdir ${SUBDIRS})
message(STATUS "Processing library at: source/${subdir}")
file(GLOB_RECURSE SRCS source/${subdir}/*.cpp)
- add_library(${subdir}_static STATIC ${SRCS})
- add_library(${subdir}_shared SHARED ${SRCS})
+ add_library(anna_${subdir}_static STATIC ${SRCS})
+ add_library(anna_${subdir}_shared SHARED ${SRCS})
ENDFOREACH()
# <dynamic>
message(STATUS "Processing dynamic library at: dynamic/launcher/${rel}")
file(GLOB_RECURSE SRCS dynamic/launcher/${rel}/*.cpp)
- add_library(launcher_procedure_${libpath}_shared SHARED ${SRCS})
+ add_library(anna_launcher_procedure_${libpath}_shared SHARED ${SRCS})
set(target_dirname build/${CMAKE_BUILD_TYPE}/lib/dynamic/launcher/${rel})
- set(target_basename launcher_procedure_${libpath}_shared)
+ set(target_basename anna_launcher_procedure_${libpath}_shared)
set_target_properties(${target_basename} PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${target_dirname})
#file(RENAME ${target_dirname}/lib${target_basename}.so ${target_dirname}/libprocedure.so)
ENDFOREACH()
-# Linking example:
-#file(GLOB_RECURSE SRCS ${CMAKE_CURRENT_SOURCE_DIR}/example/core/genLogon/*.cpp)
-#add_executable(genLogon ${SRCS})
-#target_link_libraries(genLogon core_static app_static core_static test_static xml_static io_static crypto xml2 rt)
-
# Generalization:
# <example>
SUBDIRLIST(MODULES ${CMAKE_CURRENT_SOURCE_DIR}/example)
file(GLOB_RECURSE SRCS ${CMAKE_CURRENT_SOURCE_DIR}/example/${module}/${subdir}/*.cpp)
# Executable
- set(target "${module}_${subdir}")
+ set(target "anna_${module}_${subdir}")
add_executable(${target} "${SRCS}")
set_target_properties(${target} PROPERTIES LINKER_LANGUAGE CXX)
set(libraries_file "${CMAKE_CURRENT_SOURCE_DIR}/example/${module}/${subdir}/libraries.txt")
file(GLOB_RECURSE SRCS ${CMAKE_CURRENT_SOURCE_DIR}/test/${module}/*.cpp)
# Executable
- set(target "test_${module}")
+ set(target "anna_test_${module}")
add_executable(${target} "${SRCS}")
target_link_libraries(${target} ${GTEST_BOTH_LIBRARIES} pthread)
set(libraries_file "${CMAKE_CURRENT_SOURCE_DIR}/test/${module}/libraries.txt")
LIB_DIR=$PROJECT_ROOT/build/$VARIANT/lib
# Main executables:
-ADML_EXEC=$BIN_DIR/diameter_launcher
-STACKMGMT_EXEC=$BIN_DIR/diameter_stackManagement
+ADML_EXEC=$BIN_DIR/anna_diameter_launcher
+STACKMGMT_EXEC=$BIN_DIR/anna_diameter_stackManagement
[ ! -d $SETUPS_DIR ] && _exit "Diameter stacks not found ($SETUPS_DIR)."
# Default dynamic library:
cd $DPATH/dynlibs
-ln -s default/liblauncher_procedure_default_shared.so
+ln -s default/libanna_launcher_procedure_default_shared.so
cd - >/dev/null
# Basic setup:
#!/bin/bash
-dynamicProcedureLibName=liblauncher_procedure_default_shared.so
+dynamicProcedureLibName=libanna_launcher_procedure_default_shared.so
echo
echo "------------------------------------------------"
echo "Dynamic library selection for launcher procedure"
echo
echo "Available options:"
tmpfile=$(mktemp)
- find . -name "liblauncher_procedure_*_shared.so" > $tmpfile
+ find . -name "libanna_launcher_procedure_*_shared.so" > $tmpfile
echo
for line in $(cat $tmpfile); do echo " $line" ; done
dflt=$(grep "^./default/" $tmpfile)